New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
phycst.F90 in utils/tools/DOMAINcfg/src – NEMO

source: utils/tools/DOMAINcfg/src/phycst.F90 @ 13204

Last change on this file since 13204 was 13204, checked in by smasson, 4 years ago

tools: update with tools_dev_r12970_AGRIF_CMEMS

File size: 3.3 KB
Line 
1MODULE phycst
2   !!======================================================================
3   !!                    ***  MODULE  phycst  ***
4   !!     Definition of of both ocean and ice parameters used in the code
5   !!=====================================================================
6   !! History :   OPA  !  1990-10  (C. Levy - G. Madec)  Original code
7   !!             8.1  !  1991-11  (G. Madec, M. Imbard)  cosmetic changes
8   !!   NEMO      1.0  !  2002-08  (G. Madec, C. Ethe)  F90, add ice constants
9   !!              -   !  2006-08  (G. Madec)  style
10   !!             3.2  !  2006-08  (S. Masson, G. Madec)  suppress useless variables + style
11   !!             3.4  !  2011-11  (C. Harris)  minor changes for CICE constants
12   !!----------------------------------------------------------------------
13
14   !!----------------------------------------------------------------------
15   !!   phy_cst  : define and print physical constant and domain parameters
16   !!----------------------------------------------------------------------
17   USE par_oce          ! ocean parameters
18   USE in_out_manager   ! I/O manager
19
20   IMPLICIT NONE
21   PRIVATE
22
23   PUBLIC   phy_cst     ! routine called by inipar.F90
24
25   REAL(wp), PUBLIC ::   rpi      = 3.141592653589793_wp             !: pi
26   REAL(wp), PUBLIC ::   rad      = 3.141592653589793_wp / 180._wp   !: conversion from degre into radian
27   REAL(wp), PUBLIC ::   rsmall   = 0.5 * EPSILON( 1.e0 )            !: smallest real computer value
28   
29   REAL(wp), PUBLIC ::   rday     = 24.*60.*60.      !: day                                [s]
30   REAL(wp), PUBLIC ::   rsiyea                      !: sideral year                       [s]
31   REAL(wp), PUBLIC ::   rsiday                      !: sideral day                        [s]
32   REAL(wp), PUBLIC ::   raamo    =  12._wp          !: number of months in one year
33   REAL(wp), PUBLIC ::   rjjhh    =  24._wp          !: number of hours in one day
34   REAL(wp), PUBLIC ::   rhhmm    =  60._wp          !: number of minutes in one hour
35   REAL(wp), PUBLIC ::   rmmss    =  60._wp          !: number of seconds in one minute
36   REAL(wp), PUBLIC ::   omega                       !: earth rotation parameter           [s-1]
37   REAL(wp), PUBLIC ::   ra       = 6371229._wp      !: earth radius                       [m]
38   REAL(wp), PUBLIC ::   grav     = 9.80665_wp       !: gravity                            [m/s2]   
39
40   !!----------------------------------------------------------------------
41   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
42   !! $Id: phycst.F90 10068 2018-08-28 14:09:04Z nicolasmartin $
43   !! Software governed by the CeCILL license (see ./LICENSE)
44   !!----------------------------------------------------------------------
45   
46CONTAINS
47   
48   SUBROUTINE phy_cst
49      !!----------------------------------------------------------------------
50      !!                       ***  ROUTINE phy_cst  ***
51      !!
52      !! ** Purpose :   set and print the constants
53      !!----------------------------------------------------------------------
54
55      rsiyea = 365.25_wp * rday * 2._wp * rpi / 6.283076_wp
56      rsiday = rday / ( 1._wp + rday / rsiyea )
57#if defined key_cice
58      omega  = 7.292116e-05
59#else
60      omega  = 2._wp * rpi / rsiday 
61#endif
62
63   END SUBROUTINE phy_cst
64
65   !!======================================================================
66END MODULE phycst
Note: See TracBrowser for help on using the repository browser.