[6951] | 1 | MODULE 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 | |
---|
[10727] | 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 |
---|
[6951] | 28 | |
---|
[10727] | 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] |
---|
[6951] | 39 | |
---|
| 40 | !!---------------------------------------------------------------------- |
---|
[9598] | 41 | !! NEMO/OCE 4.0 , NEMO Consortium (2018) |
---|
[10727] | 42 | !! $Id: phycst.F90 10068 2018-08-28 14:09:04Z nicolasmartin $ |
---|
| 43 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
[6951] | 44 | !!---------------------------------------------------------------------- |
---|
| 45 | |
---|
| 46 | CONTAINS |
---|
| 47 | |
---|
| 48 | SUBROUTINE phy_cst |
---|
| 49 | !!---------------------------------------------------------------------- |
---|
| 50 | !! *** ROUTINE phy_cst *** |
---|
| 51 | !! |
---|
[10727] | 52 | !! ** Purpose : set and print the constants |
---|
[6951] | 53 | !!---------------------------------------------------------------------- |
---|
| 54 | |
---|
| 55 | rsiyea = 365.25_wp * rday * 2._wp * rpi / 6.283076_wp |
---|
| 56 | rsiday = rday / ( 1._wp + rday / rsiyea ) |
---|
[10727] | 57 | #if defined key_cice |
---|
| 58 | omega = 7.292116e-05 |
---|
| 59 | #else |
---|
[6951] | 60 | omega = 2._wp * rpi / rsiday |
---|
[10727] | 61 | #endif |
---|
[6951] | 62 | |
---|
| 63 | END SUBROUTINE phy_cst |
---|
| 64 | |
---|
| 65 | !!====================================================================== |
---|
| 66 | END MODULE phycst |
---|