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 @ 258

Last change on this file since 258 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
RevLine 
[3]1MODULE oce
2   !!======================================================================
[15]3   !!                      ***  MODULE  oce  ***
[3]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   !!----------------------------------------------------------------------
[247]9   !!  OPA 9.0 , LOCEAN-IPSL (2005)
10   !! $Header$
11   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
[3]12   !!----------------------------------------------------------------------
13   !! * Modules used
14   USE par_oce      ! ocean parameters
15
16   IMPLICIT NONE
[15]17   PRIVATE
[3]18
19   !! Physics and algorithm flags
20   !! ---------------------------
[15]21   LOGICAL, PUBLIC ::   ln_dynhpg_imp   = .FALSE.  !: semi-implicite hpg flag
[3]22
23   !! dynamics and tracer fields
24   !! --------------------------
[15]25   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &   !:
[88]26      ! before !  now      !  after  !      ! the after trends becomes the fields
27      ! fields !  fields   !  trends !      ! only in dyn(tra)_zdf and dyn(tra)_nxt
[3]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)
[15]35   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &   !:
[3]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
[216]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
[3]47   !! surface pressure gradient
48   !! -------------------------
[15]49   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
[3]50      spgu, spgv             !: horizontal surface pressure gradient
51
52#if defined key_partial_steps     ||   defined key_esopa
53   !! interpolated gradient
54   !! ---------------------
[15]55   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
[3]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
[15]59   REAL(wp), PUBLIC ::   &   !:
[3]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   !! ------------------------------------------
[15]67   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
[3]68      sshb, sshn,         &  !: before, now sea surface height (meters)
69      hu, hv                 !: depth at u- and v-points (meters)
70# if defined key_obc
[15]71   REAL(wp), PUBLIC ::    &  !:
72      obcsurftot       !: Total lateral surface of open boundaries
73   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
[3]74      obcumask, obcvmask     !: u-, v- Force filtering mask for the open
75      !                      !  boundary condition on grad D
76# endif
[216]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
[3]81#endif
82#if defined key_dynspg_rl   ||   defined key_esopa
83   !! rigid-lid formulation
84   !! ---------------------
[15]85   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
[3]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.