Changeset 3951 for trunk/LMDZ.PLUTO/libf/muphypluto/mp2m_intgcm.F90
- Timestamp:
- Nov 4, 2025, 5:51:18 PM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/LMDZ.PLUTO/libf/muphypluto/mp2m_intgcm.F90 (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/muphypluto/mp2m_intgcm.F90
r3560 r3951 29 29 CONTAINS 30 30 31 SUBROUTINE mm_initialize(dt,haze_prod_pCH4,p_prod,tx_prod,rc_prod,rm,df,rho_aer,rplanet,g0,air_rad,air_mmol,c fgpath)31 SUBROUTINE mm_initialize(dt,haze_prod_pCH4,p_prod,tx_prod,rc_prod,rm,df,rho_aer,rplanet,g0,air_rad,air_mmol,clouds,cfgpath) 32 32 !! Initialize global parameters of the model. 33 33 !! … … 67 67 ! Mean molar mass of air molecules (kg.mol-1). 68 68 REAL(kind=mm_wp), INTENT(in) :: air_mmol 69 ! Clouds microphysics control flag. 70 LOGICAL, INTENT(in) :: clouds 69 71 ! Internal microphysics configuration file. 70 72 CHARACTER(len=*), INTENT(in), OPTIONAL :: cfgpath … … 72 74 ! Microphysical configuration file. 73 75 TYPE(cfgparser) :: cparser 74 ! Look-up tables (transfert probabilities, mean electric correction).76 ! Look-up tables - Haze related: transfert probabilities, mean electric correction. 75 77 CHARACTER(len=st_slen) :: pssfile,mqfile 78 ! Look-up tables - Cloud related: species properties. 79 CHARACTER(len=st_slen) :: spcpath 76 80 ! Enable/disable Haze process. 77 81 LOGICAL :: w_h_prod,w_h_sed,w_h_coag,fwsed_m0,fwsed_m3 … … 84 88 85 89 ! Local variables. 86 TYPE(error) :: err 90 INTEGER :: i 91 TYPE(error) :: err 87 92 REAL(kind=mm_wp), DIMENSION(:), ALLOCATABLE :: tmp 88 93 … … 128 133 err = mm_check_opt(cfg_get_value(cparser,"rcf_min",rcf_min) ,rcf_min ,rm ,mm_log) 129 134 err = mm_check_opt(cfg_get_value(cparser,"debug",wdebug) ,wdebug ,.false. ,mm_log) 135 136 ! Retrieve clouds species configuration file 137 spcpath = '' 138 IF (clouds) THEN 139 err = mm_check_opt(cfg_get_value(cparser,"species_cfg",spcpath), spcpath, wlog=mm_log) 140 IF (err/=0) call abort_program(err) 141 ENDIF 130 142 131 143 ! Alpha function: … … 215 227 rplanet,g0,air_rad,air_mmol,coag_choice, & 216 228 w_h_prod,w_h_sed,w_h_coag,fwsed_m0,fwsed_m3, & 217 m0as_min,rcs_min,m0af_min,rcf_min,wdebug) 229 m0as_min,rcs_min,m0af_min,rcf_min, & 230 clouds,spcpath,wdebug) 218 231 IF (err /= 0) call abort_program(err) 219 232 … … 223 236 WRITE(*,'(a,L2)') "electric_charging : ", mm_w_qe 224 237 call mm_dump_parameters() 238 239 IF (clouds) THEN 240 DO i = 1, size(mm_xESPS) 241 print*, TRIM(mm_xESPS(i)%name), " fmol2fmas = ", mm_xESPS(i)%fmol2fmas 242 ENDDO 243 ENDIF 225 244 226 245 END SUBROUTINE mm_initialize
Note: See TracChangeset
for help on using the changeset viewer.
