Ignore:
Timestamp:
Feb 16, 2026, 10:28:56 AM (12 days ago)
Author:
jbclement
Message:

PEM:

  • Making the computation of ice tendencies more reliable by doing it after 'read_startpem' to know exactly where perennial ice is (no matter if there is a "startpem.nc" or not). Moreover, when there is no "startpem.nc", location of perennial ice depends now on 'watercaptag' and on huge amount of frost. This prevents negative ice tendency while there is no ice which can happen with weird PCM inputs (i.e. 'watercaptag' = F & 'watercap' /= 0 & no "stratpem.nc").
  • Few small safeguards throughout the code.

JBC

File:
1 edited

Legend:

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

    r4065 r4071  
    200200
    201201!=======================================================================
    202 SUBROUTINE build4PCM_perice(h2o_ice,co2_ice,is_h2o_perice,h2oice_PCM,co2ice_PCM)
     202SUBROUTINE build4PCM_perice(h2o_ice,co2_ice,is_h2o_perice,h2o_ice4PCM,co2_ice4PCM)
    203203!-----------------------------------------------------------------------
    204204! NAME
     
    230230! ---------
    231231real(dp),    dimension(:,:), intent(inout) :: h2o_ice, co2_ice
    232 logical(k4), dimension(:),   intent(out)   :: is_h2o_perice          ! H2O perennial ice flag
    233 real(dp),    dimension(:,:), intent(out)   :: h2oice_PCM, co2ice_PCM ! Ice for PCM
     232logical(k4), dimension(:),   intent(out)   :: is_h2o_perice            ! H2O perennial ice flag
     233real(dp),    dimension(:,:), intent(out)   :: h2o_ice4PCM, co2_ice4PCM ! Ice for PCM
    234234
    235235! LOCAL VARIABLES
     
    240240! ----
    241241call print_msg('> Building surface ice/frost for the PCM')
    242 co2ice_PCM(:,:) = co2_ice(:,:)
    243 h2oice_PCM(:,:) = 0._dp ! Because in the Mars PCM, only the variation of perennial H2O ice is monitored, not the absolute quantity
     242co2_ice4PCM(:,:) = co2_ice(:,:)
     243h2o_ice4PCM(:,:) = 0._dp ! Because in the Mars PCM, only the variation of perennial H2O ice is monitored, not the absolute quantity
    244244do i = 1,ngrid
    245245    ! Is H2O ice still considered as an infinite reservoir for the PCM?
Note: See TracChangeset for help on using the changeset viewer.