Ignore:
Timestamp:
Feb 27, 2025, 7:03:20 PM (4 months ago)
Author:
gmilcareck
Message:

Generic PCM:
Cleaning up the code. The gas constant and Avogadro number values
was not the same between the files in the model.
We choose the value recommended by the 2019 revision of the SI.
R=8.314463 J.K-1.mol-1 and NA=6.022141e23 mol-1.
GM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/comcstfi_mod.F90

    r1524 r3663  
    55      REAL,SAVE :: rad ! radius of the planet (m)
    66      REAL,SAVE :: g ! gravity (m/s2)
    7       REAL,SAVE :: r ! reduced gas constant (r=8.314511/(mugaz/1000.0))
     7      REAL,SAVE :: r ! reduced gas constant (r=8.314463/(mugaz/1000.0))
    88      REAL,SAVE :: cpp ! Cp of the atmosphere
    99      REAL,SAVE :: rcp ! r/cpp
    1010      REAL,SAVE :: mugaz ! molar mass of the atmosphere (g/mol)
    1111      REAL,SAVE :: omeg ! planet rotation rate (rad/s)
    12       REAL,SAVE :: avocado ! something like 6.022e23
     12      REAL,SAVE :: avocado !  6.022141e23
    1313!$OMP THREADPRIVATE(pi,rad,g,r,cpp,rcp,mugaz,omeg,avocado)
    1414
Note: See TracChangeset for help on using the changeset viewer.