Changeset 3178 for trunk/LMDZ.COMMON/libf
- Timestamp:
- Jan 17, 2024, 5:58:11 PM (11 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 1 added
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3173 r3178 199 199 - Correction of script "launch_orb_1Dchained.sh" which read orbital parameters missing one interval of years in two. 200 200 - Addition of the Martian date in "info_PEM.txt" for post-processing. 201 202 == 17/01/2023 == LL 203 Cleaning of the several subroutine regarding soil temperatures: they are now 204 gathered in an unique Tsoil module. 205 (cosmetic commit) -
trunk/LMDZ.COMMON/libf/evolution/pem.F90
r3172 r3178 67 67 use read_data_PCM_mod, only: read_data_PCM 68 68 use recomp_tend_co2_slope_mod, only: recomp_tend_co2_slope 69 use soil_pem_compute_mod, only: soil_pem_compute69 use compute_soiltemp_mod, only: compute_tsoil_pem 70 70 use writediagpem_mod, only: writediagfipem, writediagsoilpem 71 71 … … 819 819 Tsoil_locslope = tsoil_phys_PEM_timeseries(:,:,islope,t) 820 820 Tsurf_locslope = tsurf_PCM_timeseries(:,islope,t) 821 call soil_pem_compute(ngrid,nsoilmx_PEM,.true.,TI_locslope,timestep/timelen,Tsurf_locslope,Tsoil_locslope)822 call soil_pem_compute(ngrid,nsoilmx_PEM,.false.,TI_locslope,timestep/timelen,Tsurf_locslope,Tsoil_locslope)821 call compute_tsoil_pem(ngrid,nsoilmx_PEM,.true.,TI_locslope,timestep/timelen,Tsurf_locslope,Tsoil_locslope) 822 call compute_tsoil_pem(ngrid,nsoilmx_PEM,.false.,TI_locslope,timestep/timelen,Tsurf_locslope,Tsoil_locslope) 823 823 tsoil_phys_PEM_timeseries(:,:,islope,t) = Tsoil_locslope 824 824 do ig = 1,ngrid -
trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
r3170 r3178 21 21 use tracer_mod, only: mmol, igcm_h2o_vap ! tracer names and molar masses 22 22 use abort_pem_mod, only: abort_pem 23 use soil_pem_compute_mod, only: soil_pem_compute 24 use soil_pem_ini_mod, only: soil_pem_ini 23 use compute_soiltemp_mod, only: ini_tsoil_pem, compute_tsoil_pem 25 24 use comslope_mod, only: def_slope_mean, subslope_dist 26 25 … … 244 243 ! enddo 245 244 ! enddo 246 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope))247 call soil_pem_compute(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope))245 call ini_tsoil_pem(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 246 call compute_tsoil_pem(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 248 247 else 249 248 ! predictor corrector: restart from year 1 of the PCM and build the evolution of 250 249 ! tsoil at depth 251 250 tsoil_tmp_yr1(:,:,islope) = tsoil_startPEM(:,:,islope) 252 call soil_pem_compute(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr1(:,islope),tsoil_tmp_yr1(:,:,islope))253 call soil_pem_compute(ngrid,nsoil_PEM,.false.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr1(:,islope),tsoil_tmp_yr1(:,:,islope))251 call compute_tsoil_pem(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr1(:,islope),tsoil_tmp_yr1(:,:,islope)) 252 call compute_tsoil_pem(ngrid,nsoil_PEM,.false.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr1(:,islope),tsoil_tmp_yr1(:,:,islope)) 254 253 tsoil_tmp_yr2(:,:,islope) = tsoil_tmp_yr1(:,:,islope) 255 call soil_pem_compute(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr2(:,islope),tsoil_tmp_yr2(:,:,islope))254 call compute_tsoil_pem(ngrid,nsoil_PEM,.false.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr2(:,islope),tsoil_tmp_yr2(:,:,islope)) 256 255 257 256 do iloop = nsoil_PCM+1,nsoil_PEM … … 283 282 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2o_ice,h2o_ice,global_avg_pressure,ice_table,ice_table_thickness,TI_PEM) 284 283 do islope = 1,nslope 285 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope))284 call ini_tsoil_pem(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 286 285 enddo 287 286 endif … … 418 417 ! enddo 419 418 ! enddo 420 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope))421 call soil_pem_compute(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope))419 call ini_tsoil_pem(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 420 call compute_tsoil_pem(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 422 421 423 422 ! First raw initialization … … 430 429 do it = 1,timelen 431 430 do isoil = nsoil_PCM + 1,nsoil_PEM 432 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_inst(:,:,islope,it))431 call ini_tsoil_pem(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_inst(:,:,islope,it)) 433 432 enddo 434 433 enddo … … 448 447 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2o_ice,h2o_ice,global_avg_pressure,ice_table,ice_table_thickness,TI_PEM) 449 448 do islope = 1,nslope 450 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope))449 call ini_tsoil_pem(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 451 450 enddo 452 451 write(*,*) 'PEMETAT0: Ice table done'
Note: See TracChangeset
for help on using the changeset viewer.