Ignore:
Timestamp:
Nov 11, 2023, 5:34:53 PM (13 months ago)
Author:
llange
Message:

MARS PEM
1) Adapting the Mars PEM soil grid to the one of the PCM. The first layers in the PEM follow those from the PCM (PYM grid), and then, for layers at depth, we use the classical power low grid.
2) Correction when reading the soil temperature, water density at the surface, and initialization of the ice table.
LL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90

    r3082 r3123  
    262262      write(*,*)'PEM settings: failed loading <ice_table>'
    263263      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
    264266     call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_ave,watersoil_ave, TI_PEM(:,1,:),ice_table,ice_table_thickness)
    265267     call update_soil_thermalproperties(ngrid,nslope,nsoil_PEM,tend_h2oglaciers,waterice,global_ave_pressure,ice_table,ice_table_thickness,TI_PEM)
     
    427429      call soil_pem_ini(ngrid,nsoil_PEM,TI_PEM(:,:,islope),tsurf_ave_yr2(:,islope),tsoil_PEM(:,:,islope))
    428430      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,timelen
     431 
     432! First raw initialization
     433      do it = 1,timelen
    432434        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)
    434436        enddo
    435      enddo
    436 
     437      enddo
     438
     439      do it = 1,timelen
    437440        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))
    441442        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
    442450enddo !islope
    443451write(*,*) 'PEMETAT0: TSOIL done'
     
    445453!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    446454!c) Ice table
     455       ice_table(:,:) = -1.  ! by default, no ice table
     456       ice_table_thickness(:,:) = -1.
    447457       call computeice_table_equilibrium(ngrid,nslope,nsoil_PEM,watercaptag,watersurf_ave,watersoil_ave,TI_PEM(:,1,:),ice_table,ice_table_thickness)
    448458       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.