Ignore:
Timestamp:
Mar 19, 2026, 2:35:46 PM (10 days ago)
Author:
gmilcareck
Message:

Thermodynamics update on LMDZ.GENERIC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phygeneric/calc_cpp_mugaz.F90

    r3641 r4146  
    1919
    2020      use gases_h
    21       use comcstfi_mod, only: cpp, mugaz
     21      use comcstfi_mod, only: cppd_ref, mugaz_ref
    2222      use callkeys_mod, only: cpp_mugaz_mode
    2323      use mod_phys_lmdz_para, only : is_master
     
    155155      endif
    156156
    157       if(((abs(1.-cpp/cpp_c).gt.1.e-6) .or.  &
    158            (abs(1.-mugaz/mugaz_c).gt.1.e-6)).and. is_master ) then
     157      if(((abs(1.-cppd_ref/cpp_c).gt.1.e-6) .or.  &
     158           (abs(1.-mugaz_ref/mugaz_c).gt.1.e-6)).and. is_master ) then
    159159         ! Ehouarn: tolerate a small mismatch between computed/stored values
    160          print*,'--> Values do not match with the predefined one ! (',cpp,',',mugaz,')'
     160         print*,'--> Values do not match with the predefined one ! (',cppd_ref,',',mugaz_ref,')'
    161161         print*,'    Because cp varies with temperature and that some gases may not appear in gases.def,'
    162162         print*,'    a small discrepancy might be completely normal.'
     
    168168      if (cpp_mugaz_mode==2) then
    169169          if (is_master) print*,'*** cpp_mugaz_mode==2, so setting cpp & mugaz to computations in calc_cpp_mugaz.'
    170           mugaz = mugaz_c
    171           cpp = cpp_c
     170          mugaz_ref = mugaz_c
     171          cppd_ref = cpp_c
    172172      else
    173173          if (is_master) print*,'*** Leaving cpp & mugaz equal to predefined values'
Note: See TracChangeset for help on using the changeset viewer.