Ignore:
Timestamp:
Feb 16, 2026, 10:28:56 AM (2 weeks 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/frost.F90

    r4065 r4071  
    164164
    165165!=======================================================================
    166 SUBROUTINE compute_frost4PCM(min_h2ofrost,min_co2frost)
     166SUBROUTINE compute_frost4PCM(minPCM_h2ofrost,minPCM_co2frost)
    167167!-----------------------------------------------------------------------
    168168! NAME
     
    190190! ARGUMENTS
    191191! ---------
    192 real(dp), dimension(:,:), intent(in) :: min_h2ofrost, min_co2frost
     192real(dp), dimension(:,:), intent(in) :: minPCM_h2ofrost, minPCM_co2frost
    193193
    194194! CODE
     
    198198h2o_frost4PCM(:,:) = 0._dp
    199199co2_frost4PCM(:,:) = 0._dp
    200 where (h2ofrost_PCM(:,:) > 0._dp) h2o_frost4PCM(:,:) = h2ofrost_PCM(:,:) - min_h2ofrost(:,:)
    201 where (co2frost_PCM(:,:) > 0._dp) co2_frost4PCM(:,:) = co2frost_PCM(:,:) - min_co2frost(:,:)
     200where (h2ofrost_PCM(:,:) > 0._dp) h2o_frost4PCM(:,:) = h2ofrost_PCM(:,:) - minPCM_h2ofrost(:,:)
     201where (co2frost_PCM(:,:) > 0._dp) co2_frost4PCM(:,:) = co2frost_PCM(:,:) - minPCM_co2frost(:,:)
    202202
    203203END SUBROUTINE compute_frost4PCM
Note: See TracChangeset for help on using the changeset viewer.