Changeset 3123 for trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
- Timestamp:
- Nov 11, 2023, 5:34:53 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
r3082 r3123 262 262 write(*,*)'PEM settings: failed loading <ice_table>' 263 263 write(*,*)'will reconstruct the values of the ice table given the current state' 264 ice_table(:,:) = -1 ! by default, no ice table 265 ice_table_thickness(:,:) = -1 ! by default, no ice table 264 266 call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_ave,watersoil_ave, TI_PEM(:,1,:),ice_table,ice_table_thickness) 265 267 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2oglaciers,waterice,global_ave_pressure,ice_table,ice_table_thickness,TI_PEM) … … 427 429 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_ave_yr2(:,islope),tsoil_PEM(:,:,islope)) 428 430 call soil_pem_compute(ngrid,nsoil_PEM,.true.,TI_PEM(:,:,islope),timestep,tsurf_ave_yr2(:,islope),tsoil_PEM(:,:,islope)) 429 430 431 do it = 1,timelen431 432 ! First raw initialization 433 do it = 1,timelen 432 434 do isoil = nsoil_GCM+1,nsoil_PEM 433 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_ave_yr2(:,islope),tsoil_inst(:,:,islope,it))435 tsoil_inst(:,isoil,islope,it) = tsoil_PEM(:,isoil,islope) 434 436 enddo 435 enddo 436 437 enddo 438 439 do it = 1,timelen 437 440 do isoil = nsoil_GCM+1,nsoil_PEM 438 do ig = 1,ngrid 439 watersoil_ave(ig,isoil,islope) = exp(beta_clap_h2o/tsoil_PEM(ig,isoil,islope) + alpha_clap_h2o)/tsoil_PEM(ig,isoil,islope)*mmol(igcm_h2o_vap)/(mugaz*r) 440 enddo 441 call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_ave_yr2(:,islope),tsoil_inst(:,:,islope,it)) 441 442 enddo 443 enddo 444 445 do isoil = nsoil_GCM+1,nsoil_PEM 446 do ig = 1,ngrid 447 watersoil_ave(ig,isoil,islope) = exp(beta_clap_h2o/tsoil_PEM(ig,isoil,islope) + alpha_clap_h2o)/tsoil_PEM(ig,isoil,islope)*mmol(igcm_h2o_vap)/(mugaz*r) 448 enddo 449 enddo 442 450 enddo !islope 443 451 write(*,*) 'PEMETAT0: TSOIL done' … … 445 453 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 446 454 !c) Ice table 455 ice_table(:,:) = -1. ! by default, no ice table 456 ice_table_thickness(:,:) = -1. 447 457 call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_ave,watersoil_ave,TI_PEM(:,1,:),ice_table,ice_table_thickness) 448 458 call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2oglaciers,waterice,global_ave_pressure,ice_table,ice_table_thickness,TI_PEM)
Note: See TracChangeset
for help on using the changeset viewer.