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

Last change on this file since 812 was 719, checked in by ctlod, 17 years ago

get back to the nemo_v2_3 version for trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 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.0  !  05-11  (V. Garnier) Surface pressure gradient organization
9   !!----------------------------------------------------------------------
10   !!  OPA 9.0 , LOCEAN-IPSL (2005)
11   !! $Header$
12   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt
13   !!----------------------------------------------------------------------
14   !! * Modules used
15   USE par_oce      ! ocean parameters
16
17   IMPLICIT NONE
18   PRIVATE
19
20   !! Physics and algorithm flags
21   !! ---------------------------
22   LOGICAL, PUBLIC ::   ln_dynhpg_imp   = .FALSE.  !: semi-implicite hpg flag
23   INTEGER, PUBLIC ::   nn_dynhpg_rst   = 0        !: add dynhpg implicit variables in restart ot not
24
25   !! dynamics and tracer fields
26   !! --------------------------
27   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &   !:
28      ! before !  now      !  after  !      ! the after trends becomes the fields
29      ! fields !  fields   !  trends !      ! only in dyn(tra)_zdf and dyn(tra)_nxt
30      ub       ,  un       ,  ua     ,   &  !: i-horizontal velocity (m/s)
31      vb       ,  vn       ,  va     ,   &  !: j-horizontal velocity (m/s)
32                  wn       ,             &  !: vertical velocity (m/s)
33      rotb     ,  rotn     ,             &  !: relative vorticity (1/s)
34      hdivb    ,  hdivn    ,             &  !: horizontal divergence (1/s)
35      tb       ,  tn       ,  ta     ,   &  !: potential temperature (celcius)
36      sb       ,  sn       ,  sa            !: salinity (psu)
37   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   &   !:
38      rhd ,                              &  !: in situ density anomalie rhd=(rho-rau0)/rau0 (no units)
39      rhop,                              &  !: potential volumic mass (kg/m3)
40      rn2                                   !: brunt-vaisala frequency (1/s2)
41
42      !! advection scheme choice
43      !! -----------------------
44      CHARACTER(len=3), PUBLIC  ::   l_adv   !: 'ce2' centre scheme used
45         !                                   !: 'tvd' TVD scheme used
46         !                                   !: 'mus' MUSCL scheme used
47         !                                   !: 'mu2' MUSCL2 scheme used
48
49   !! surface pressure gradient
50   !! -------------------------
51   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
52      spgu, spgv             !: horizontal surface pressure gradient
53
54   !! interpolated gradient (only used in zps case)
55   !! ---------------------
56   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
57      gtu, gsu, gru,      &  !: t-, s- and rd horizontal gradient at u- and
58      gtv, gsv, grv          !: v-points at bottom ocean level
59
60   !! free surface
61   !! ------------
62   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
63      sshb , sshn ,        &  !: before, now sea surface height (meters)
64      sshu , sshv ,        &  !: sea surface height at u- and v- point
65      sshbb, ssha             !: before before sea surface height at t-point
66
67#if defined key_dynspg_rl   ||   defined key_esopa
68   !! rigid-lid formulation
69   !! ---------------------
70   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !:
71      bsfb, bsfn,         &  !: before, now barotropic streamfunction (m3/s)
72      bsfd                   !: now trend of barotropic streamfunction (m3/s2)
73#endif
74   !!----------------------------------------------------------------------
75END MODULE oce
Note: See TracBrowser for help on using the repository browser.