1 | MODULE oce |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE oce *** |
---|
4 | !! Ocean : dynamics and active tracers defined in memory |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 02-11 (G. Madec) F90: Free form and module |
---|
7 | !! 2.0 ! 05-11 (V. Garnier) Surface pressure gradient organization |
---|
8 | !!---------------------------------------------------------------------- |
---|
9 | !! NEMO/OPA 2.0 , LOCEAN-IPSL (2007) |
---|
10 | !! $Id:$ |
---|
11 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | USE par_oce ! ocean parameters |
---|
14 | |
---|
15 | IMPLICIT NONE |
---|
16 | PRIVATE |
---|
17 | |
---|
18 | |
---|
19 | !! Physics and algorithm flags |
---|
20 | !! --------------------------- |
---|
21 | LOGICAL, PUBLIC :: ln_dynhpg_imp = .FALSE. !: semi-implicite hpg flag |
---|
22 | INTEGER, PUBLIC :: nn_dynhpg_rst = 0 !: add dynhpg implicit variables in restart ot not |
---|
23 | |
---|
24 | !! dynamics and tracer fields ! before ! now ! after ! the after trends becomes the fields |
---|
25 | !! -------------------------- ! fields ! fields ! trends ! only in dyn(tra)_zdf and dyn(tra)_nxt |
---|
26 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: ub , un , ua !: i-horizontal velocity (m/s) |
---|
27 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: vb , vn , va !: j-horizontal velocity (m/s) |
---|
28 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: wn !: vertical velocity (m/s) |
---|
29 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: rotb , rotn !: relative vorticity (1/s) |
---|
30 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: hdivb , hdivn !: horizontal divergence (1/s) |
---|
31 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: tb , tn , ta !: potential temperature (celcius) |
---|
32 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: sb , sn , sa !: salinity (psu) |
---|
33 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: rhd !: in situ density anomalie rhd=(rho-rau0)/rau0 |
---|
34 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: rhop !: potential volumic mass (kg/m3) |
---|
35 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: rn2 !: brunt-vaisala frequency (1/s2) |
---|
36 | |
---|
37 | !! advection scheme choice |
---|
38 | !! ----------------------- |
---|
39 | !!gm only for trcadv... be be suppressed |
---|
40 | CHARACTER(len=3), PUBLIC :: l_adv !: 'ce2' centre scheme used |
---|
41 | ! !: 'tvd' TVD scheme used |
---|
42 | ! !: 'mus' MUSCL scheme used |
---|
43 | ! !: 'mu2' MUSCL2 scheme used |
---|
44 | |
---|
45 | !! surface pressure gradient |
---|
46 | !! ------------------------- |
---|
47 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: spgu, spgv !: horizontal surface pressure gradient |
---|
48 | |
---|
49 | !! interpolated gradient (only used in zps case) |
---|
50 | !! --------------------- |
---|
51 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: gtu, gsu, gru !: t-, s- and rd horizontal gradient at u- and |
---|
52 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: gtv, gsv, grv !: v-points at bottom ocean level |
---|
53 | |
---|
54 | !! free surface |
---|
55 | !! ------------ |
---|
56 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshb , sshn !: before, now sea surface height (meters) |
---|
57 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshu , sshv !: sea surface height at u- and v- point |
---|
58 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshbb, ssha !: before before sea surface height at t-point |
---|
59 | |
---|
60 | #if defined key_dynspg_rl || defined key_esopa |
---|
61 | !! rigid-lid formulation |
---|
62 | !! --------------------- |
---|
63 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: bsfb, bsfn !: before, now barotropic streamfunction [m3/s] |
---|
64 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: bsfd !: now barotropic streamfunction trend [m3/s2] |
---|
65 | #endif |
---|
66 | |
---|
67 | !!---------------------------------------------------------------------- |
---|
68 | END MODULE oce |
---|