Ignore:
Timestamp:
Mar 19, 2026, 2:07:40 PM (3 weeks ago)
Author:
jbclement
Message:

PEM:

  • Fix the writing of potential temperature and air mass in "start.nc".
  • Add the checking of variable validity when writing a variable in a NetCDF file.

JBC

File:
1 edited

Legend:

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

    r4138 r4145  
    470470    do i = 1,nlayer
    471471        call compute_hybrid_sig(sig(i),pa,preff,newsig)
    472         bp(i) = exp(1._dp - 1._dp/(newsig**2))
    473         ap_l(i) = pa*(newsig - bp(i))
     472        bp_l(i) = exp(1._dp - 1._dp/(newsig**2))
     473        ap_l(i) = pa*(newsig - bp_l(i))
    474474    end do
    475475    ap_l(nlayer + 1) = 0._dp
    476     bp(nlayer + 1) = 0._dp
     476    bp_l(nlayer + 1) = 0._dp
    477477else
    478478    call print_msg('> Defining sigma altitude coordinates',LVL_NFO)
    479479    ap_l(:) = 0._dp
    480     bp(1:nlayer) = sig(1:nlayer)
    481     bp(nlayer + 1) = 0._dp
     480    bp_l(1:nlayer) = sig(1:nlayer)
     481    bp_l(nlayer + 1) = 0._dp
    482482end if
    483483
Note: See TracChangeset for help on using the changeset viewer.