Changeset 3170 for trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
- Timestamp:
- Jan 4, 2024, 11:37:33 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
r3161 r3170 16 16 use comsoil_h, only: volcapa, inertiedat 17 17 use adsorption_mod, only: regolith_adsorption, adsorption_pem 18 use ice_table_mod, only: computeice_table_equilibrium 18 use ice_table_mod, only: computeice_table_equilibrium, icetable_equilibrium 19 19 use constants_marspem_mod, only: alpha_clap_h2o, beta_clap_h2o, TI_breccia, TI_bedrock 20 20 use soil_thermalproperties_mod, only: update_soil_thermalproperties … … 102 102 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 103 103 104 !0. Check if the start_PEM exist.104 !0.1 Check if the start_PEM exist. 105 105 106 106 inquire(file = filename,exist = startpem_file) … … 108 108 write(*,*)'Is start PEM?',startpem_file 109 109 110 !0.2 Set to default values 111 ice_table = -1. ! by default, no ice table 112 ice_table_thickness = -1. 110 113 !1. Run 111 114 if (startpem_file) then … … 272 275 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 273 276 !3. Ice Table 274 call get_field("ice_table",ice_table,found) 275 if (.not. found) then 276 write(*,*)'PEM settings: failed loading <ice_table>' 277 write(*,*)'will reconstruct the values of the ice table given the current state' 278 ice_table = -1 ! by default, no ice table 279 ice_table_thickness = -1 ! by default, no ice table 280 call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_avg,watersoil_avg, TI_PEM(:,1,:),ice_table,ice_table_thickness) 281 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2o_ice,h2o_ice,global_avg_pressure,ice_table,ice_table_thickness,TI_PEM) 282 do islope = 1,nslope 283 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 284 enddo 277 if(icetable_equilibrium) then 278 call get_field("ice_table",ice_table,found) 279 if (.not. found) then 280 write(*,*)'PEM settings: failed loading <ice_table>' 281 write(*,*)'will reconstruct the values of the ice table given the current state' 282 call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_avg,watersoil_avg, TI_PEM(:,1,:),ice_table,ice_table_thickness) 283 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2o_ice,h2o_ice,global_avg_pressure,ice_table,ice_table_thickness,TI_PEM) 284 do islope = 1,nslope 285 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 286 enddo 287 endif 288 write(*,*) 'PEMETAT0: ICE TABLE done' 285 289 endif 286 287 write(*,*) 'PEMETAT0: ICE TABLE done'288 290 289 291 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 442 444 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 443 445 !c) Ice table 444 i ce_table = -1. ! by default, no ice table445 ice_table_thickness = -1.446 call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_avg,watersoil_avg,TI_PEM(:,1,:),ice_table,ice_table_thickness)447 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2o_ice,h2o_ice,global_avg_pressure,ice_table,ice_table_thickness,TI_PEM)448 do islope = 1,nslope449 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope))450 enddo451 write(*,*) 'PEMETAT0: Ice table done'452 446 if(icetable_equilibrium) then 447 call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_avg,watersoil_avg,TI_PEM(:,1,:),ice_table,ice_table_thickness) 448 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2o_ice,h2o_ice,global_avg_pressure,ice_table,ice_table_thickness,TI_PEM) 449 do islope = 1,nslope 450 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_avg_yr2(:,islope),tsoil_PEM(:,:,islope)) 451 enddo 452 write(*,*) 'PEMETAT0: Ice table done' 453 endif 454 453 455 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 454 456 !d) Regolith adsorbed
Note: See TracChangeset
for help on using the changeset viewer.