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.
oce.F90 in trunk/NEMO/OPA_SRC – NEMO

source: trunk/NEMO/OPA_SRC/oce.F90 @ 247

Last change on this file since 247 was 247, checked in by opalod, 19 years ago

CL : Add CVS Header and CeCILL licence information

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
Line 
1MODULE oce
2   !!======================================================================
3   !!                      ***  MODULE  oce  ***
4   !! Ocean        :  dynamics and active tracers defined in memory
5   !!======================================================================
6   !! History :
7   !!   8.5  !  02-11  (G. Madec)  F90: Free form and module
8   !!----------------------------------------------------------------------
9   !!  OPA 9.0 , LOCEAN-IPSL (2005)
10   !! $Header$
11   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
12   !!----------------------------------------------------------------------
13   !! * Modules used
14   USE par_oce      ! ocean parameters
15
16   IMPLICIT NONE
17   PRIVATE
18
19   !! Physics and algorithm flags
20   !! ---------------------------
21   LOGICAL, PUBLIC ::   ln_dynhpg_imp   = .FALSE.  !: semi-implicite hpg flag
22
23   !! dynamics and tracer fields
24   !! --------------------------
25   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &   !:
26      ! before !  now      !  after  !      ! the after trends becomes the fields
27      ! fields !  fields   !  trends !      ! only in dyn(tra)_zdf and dyn(tra)_nxt
28      ub       ,  un       ,  ua     ,   &  !: i-horizontal velocity (m/s)
29      vb       ,  vn       ,  va     ,   &  !: j-horizontal velocity (m/s)
30                  wn       ,             &  !: vertical velocity (m/s)
31      rotb     ,  rotn     ,             &  !: relative vorticity (1/s)
32      hdivb    ,  hdivn    ,             &  !: horizontal divergence (1/s)
33      tb       ,  tn       ,  ta     ,   &  !: potential temperature (celcius)
34      sb       ,  sn       ,  sa            !: salinity (psu)
35   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &   !:
36      rhd ,                              &  !: in situ density anomalie rhd=(rho-rau0)/rau0 (no units)
37      rhop,                              &  !: potential volumic mass (kg/m3)
38      rn2                                   !: brunt-vaisala frequency (1/s2)
39
40      !! advection scheme choice
41      !! -----------------------
42      CHARACTER(len=3), PUBLIC  ::   l_adv   !: 'ce2' centre scheme used
43              !                              !: 'tvd' TVD scheme used
44              !                              !: 'mus' MUSCL scheme used
45              !                              !: 'mu2' MUSCL2 scheme used
46
47   !! surface pressure gradient
48   !! -------------------------
49   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
50      spgu, spgv             !: horizontal surface pressure gradient
51
52#if defined key_partial_steps     ||   defined key_esopa
53   !! interpolated gradient
54   !! ---------------------
55   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
56      gtu, gsu, gru,      &  !: t-, s- and rd horizontal gradient at u- and
57      gtv, gsv, grv          !: v-points at bottom ocean level
58#else
59   REAL(wp), PUBLIC ::   &   !:
60      gtu, gsu, gru,      &  !: dummy scalars
61      gtv, gsv, grv          !:
62#endif
63
64#if defined key_dynspg_fsc   ||   defined key_esopa
65   !! free surface - constant volume formulation
66   !! ------------------------------------------
67   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
68      sshb, sshn,         &  !: before, now sea surface height (meters)
69      hu, hv                 !: depth at u- and v-points (meters)
70# if defined key_obc
71   REAL(wp), PUBLIC ::    &  !:
72      obcsurftot       !: Total lateral surface of open boundaries
73   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
74      obcumask, obcvmask     !: u-, v- Force filtering mask for the open
75      !                      !  boundary condition on grad D
76# endif
77# if defined key_trdvor
78   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
79       hur, hvr             !: inverse of u and v-points ocean depth (1/m)
80# endif
81#endif
82#if defined key_dynspg_rl   ||   defined key_esopa
83   !! rigid-lid formulation
84   !! ---------------------
85   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
86      hur, hvr,           &  !: inverse of u and v-points ocean depth (1/m)
87      bsfb, bsfn,         &  !: before, now barotropic streamfunction (m3/s)
88      bsfd                   !: now trend of barotropic streamfunction (m3/s2)
89#endif
90   !!----------------------------------------------------------------------
91END MODULE oce
Note: See TracBrowser for help on using the repository browser.