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 tags/start/NEMO/OPA_SRC – NEMO

source: tags/start/NEMO/OPA_SRC/oce.F90 @ 8873

Last change on this file since 8873 was 3, checked in by opalod, 20 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 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 , LODYC-IPSL (2003)
10   !!----------------------------------------------------------------------
11   !! * Modules used
12   USE par_oce      ! ocean parameters
13
14   IMPLICIT NONE
15
16   !! Physics and algorithm flags
17   !! ---------------------------
18#if defined key_vectopt_memory
19   LOGICAL ::   l_vopt   = .TRUE.   !: memory vector optimization flag
20#else
21   LOGICAL ::   l_vopt   = .FALSE.  !: memory vector optimization flag
22#endif
23
24   LOGICAL ::   ln_dynhpg_imp   = .FALSE.  ! semi-implicite hpg flag
25
26   !! dynamics and tracer fields
27   !! --------------------------
28   REAL(wp), DIMENSION(jpi,jpj,jpk) ::   &
29      ! before !  now      !  after  !
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), 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   !! surface pressure gradient
43   !! -------------------------
44   REAL(wp), DIMENSION(jpi,jpj) ::   &
45      spgu, spgv             !: horizontal surface pressure gradient
46
47#if defined key_partial_steps     ||   defined key_esopa
48   !! interpolated gradient
49   !! ---------------------
50   REAL(wp), DIMENSION(jpi,jpj) ::   &
51      gtu, gsu, gru,      &  !: t-, s- and rd horizontal gradient at u- and
52      gtv, gsv, grv          !: v-points at bottom ocean level
53#else
54   REAL(wp) ::   &
55      gtu, gsu, gru,      &  !: dummy scalars
56      gtv, gsv, grv          !:
57#endif
58
59#if defined key_dynspg_fsc   ||   defined key_esopa
60   !! free surface - constant volume formulation
61   !! ------------------------------------------
62   REAL(wp), DIMENSION(jpi,jpj) ::   &
63      sshb, sshn,         &  !: before, now sea surface height (meters)
64      hu, hv                 !: depth at u- and v-points (meters)
65# if defined key_obc
66   REAL(wp) obcsurftot       !: Total lateral surface of open boundaries
67   REAL(wp), DIMENSION(jpi,jpj) ::   &
68      obcumask, obcvmask     !: u-, v- Force filtering mask for the open
69      !                      !  boundary condition on grad D
70# endif
71#endif
72#if defined key_dynspg_rl   ||   defined key_esopa
73   !! rigid-lid formulation
74   !! ---------------------
75   REAL(wp), DIMENSION(jpi,jpj) ::   &
76      hur, hvr,           &  !: inverse of u and v-points ocean depth (1/m)
77      bsfb, bsfn,         &  !: before, now barotropic streamfunction (m3/s)
78      bsfd                   !: now trend of barotropic streamfunction (m3/s2)
79#endif
80
81   !!----------------------------------------------------------------------
82END MODULE oce
Note: See TracBrowser for help on using the repository browser.