FMS
2024.03
Flexible Modeling System
|
Defines useful constants for Earth. Constants are defined as real.
Defines useful constants for Earth. Constants are defined as real.
FMSconstants have been declared as REAL(kind=sizeof(rvar)), PARAMETER.
The value of a constant defined and used from here cannot be changed in a users program. New constants can be defined in terms of values from the FMSconstants module and their includes using a parameter statement.
The currently support contant systems are: GFDL constants (gfdl_constants.fh) GEOS constants (geos_constants.fh) GFS constants (gfs_constants.fh)
The name given to a particular constant may be changed.
Constants can only be used on the right side on an assignment statement (their value can not be reassigned).
Example:
use FMSConstants, only: TFREEZE, grav_new => GRAV real, parameter :: grav_inv = 1.0 / grav_new tempc(:,:,:) = tempk(:,:,:) - TFREEZE geopotential(:,:) = height(:,:) * grav_new