1 !***********************************************************************
2 !* GNU Lesser General Public License
4 !* This file is part of the GFDL Flexible Modeling System (FMS).
6 !* FMS is free software: you can redistribute it and/or modify it under
7 !* the terms of the GNU Lesser General Public License as published by
8 !* the Free Software Foundation, either version 3 of the License, or (at
9 !* your option) any later version.
11 !* FMS is distributed in the hope that it will be useful, but WITHOUT
12 !* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 !* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 !* You should have received a copy of the GNU Lesser General Public
17 !* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
18 !***********************************************************************
20 !> @brief File for @ref constants_mod
22 !> @defgroup constants_mod constants_mod
24 !> @brief compatibility module as we transition to an FMSConstants module
26 !> Constants have been declared as type REAL, PARAMETER.
28 !! The value a constant can not be changed in a users program.
29 !! New constants can be defined in terms of values from the
30 !! constants module using a parameter statement.<br><br>
32 !! The name given to a particular constant may be changed.<br><br>
34 !! Constants can be used on the right side on an assignment statement
35 !! (their value can not be reassigned).
40 !! use constants_mod, only: TFREEZE, grav_new => GRAV
41 !! real, parameter :: grav_inv = 1.0 / grav_new
42 !! tempc(:,:,:) = tempk(:,:,:) - TFREEZE
43 !! geopotential(:,:) = height(:,:) * grav_new
46 !> @addtogroup constants_mod
50 !> rename to not conflict with any other version vars
51 use FMSConstants, version => constants_version, constants_init => FMSconstants_init
55 end module constants_mod