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/clim_state_rec.F90

    r4068 r4071  
    137137! DEPENDENCIES
    138138! ------------
    139 use geometry,   only: nlayer, nslope
     139use geometry,   only: nlayer
    140140use atmosphere, only: teta_PCM, u_PCM, v_PCM
    141141use tracers,    only: nq, qnames
     
    155155! LOCAL VARIABLES
    156156! ---------------
    157 integer(di) :: funit, ierr, i, j, l
     157integer(di) :: funit, ierr, i, l
    158158
    159159! CODE
     
    244244
    245245! Variables that have been modified
    246 call put_var_nc('watercaptag',merge(1.,0.,is_h2o_perice))
     246call put_var_nc('watercaptag',merge(1._dp,0._dp,is_h2o_perice))
    247247call put_var_nc('watercap',h2o_ice4PCM,1)
    248248call put_var_nc('h2o_ice',h2o_frost4PCM,1)
Note: See TracChangeset for help on using the changeset viewer.