Ignore:
Timestamp:
Mar 23, 2026, 2:55:10 PM (2 weeks ago)
Author:
jbclement
Message:

PEM:

  • Simplification of subroutines to convert data between the physical and the dynamical/lon-lat grids + making them more robust.
  • Correction for air mass to give back to the PCM. The variable is extensive so poles must be treated specifically.
  • Making the PEM able to do 0 year.
  • Explicit information about the frost values computed by the PEM + enforcing positivity of yearly minima.

JBC

File:
1 edited

Legend:

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

    r4134 r4147  
    169169call print_msg("> Adapting surface temperature where ice disappeared",LVL_NFO)
    170170! Convert from reduced grid to lon-lat grid
    171 call vect2lonlat(nlon,nlat,ngrid,latitudes,latitude_ll)
     171call vect2lonlat(latitudes,latitude_ll)
    172172do islope = 1,nslope
    173     call vect2lonlat(nlon,nlat,ngrid,tsurf_avg(:,islope),tsurf_ll(:,:,islope))
    174     call vect2lonlat(nlon,nlat,ngrid,surfice(:,islope),co2ice_ll(:,:,islope))
    175     call vect2lonlat(nlon,nlat,ngrid,merge(1._dp,0._dp,is_ice_ini(:,islope)),mask_co2ice_ini(:,:,islope))
    176     call vect2lonlat(nlon,nlat,ngrid,merge(1._dp,0._dp,ice_disappeared(:,islope)),mask_co2ice_disappeared(:,:,islope))
     173    call vect2lonlat(tsurf_avg(:,islope),tsurf_ll(:,:,islope))
     174    call vect2lonlat(surfice(:,islope),co2ice_ll(:,:,islope))
     175    call vect2lonlat(merge(1._dp,0._dp,is_ice_ini(:,islope)),mask_co2ice_ini(:,:,islope))
     176    call vect2lonlat(merge(1._dp,0._dp,ice_disappeared(:,islope)),mask_co2ice_disappeared(:,:,islope))
    177177end do
    178178
     
    233233! Convert back from lon-lat grid to reduced grid
    234234do islope = 1,nslope
    235     call lonlat2vect(nlon,nlat,ngrid,tsurf_ll(:,:,islope),tsurf_avg(:,islope))
    236     call lonlat2vect(nlon,nlat,ngrid,mask_co2ice_disappeared(:,:,islope),tmp)
     235    call lonlat2vect(tsurf_ll(:,:,islope),tsurf_avg(:,islope))
     236    call lonlat2vect(mask_co2ice_disappeared(:,:,islope),tmp)
    237237    where (tmp > 0.5_dp) ice_disappeared(:,islope) = .true.
    238238end do
Note: See TracChangeset for help on using the changeset viewer.