1 | MODULE 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 | !! $Id$ |
---|
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 :: l_traldf_rot = .FALSE. !: rotated laplacian operator for lateral diffusion |
---|
23 | LOGICAL, PUBLIC :: ln_dynhpg_imp = .FALSE. !: semi-implicite hpg flag |
---|
24 | INTEGER, PUBLIC :: nn_dynhpg_rst = 0 !: add dynhpg implicit variables in restart ot not |
---|
25 | |
---|
26 | !! dynamics and tracer fields |
---|
27 | !! -------------------------- |
---|
28 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: & !: |
---|
29 | ! before ! now ! after ! ! the after trends becomes the fields |
---|
30 | ! fields ! fields ! trends ! ! only in dyn(tra)_zdf and dyn(tra)_nxt |
---|
31 | ub , un , ua , & !: i-horizontal velocity (m/s) |
---|
32 | vb , vn , va , & !: j-horizontal velocity (m/s) |
---|
33 | wn , & !: vertical velocity (m/s) |
---|
34 | rotb , rotn , & !: relative vorticity (1/s) |
---|
35 | hdivb , hdivn , & !: horizontal divergence (1/s) |
---|
36 | tb , tn , ta , & !: potential temperature (celcius) |
---|
37 | sb , sn , sa !: salinity (psu) |
---|
38 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: & !: |
---|
39 | rhd , & !: in situ density anomalie rhd=(rho-rau0)/rau0 (no units) |
---|
40 | rhop, & !: potential volumic mass (kg/m3) |
---|
41 | rn2, & !: now brunt-vaisala frequency (1/s2) |
---|
42 | rn2b !: before brunt-vaisala frequency (1/s2) |
---|
43 | |
---|
44 | |
---|
45 | !! advection scheme choice |
---|
46 | !! ----------------------- |
---|
47 | CHARACTER(len=3), PUBLIC :: l_adv !: 'ce2' centre scheme used |
---|
48 | ! !: 'tvd' TVD scheme used |
---|
49 | ! !: 'mus' MUSCL scheme used |
---|
50 | ! !: 'mu2' MUSCL2 scheme used |
---|
51 | |
---|
52 | !! surface pressure gradient |
---|
53 | !! ------------------------- |
---|
54 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: & !: |
---|
55 | spgu, spgv !: horizontal surface pressure gradient |
---|
56 | |
---|
57 | !! interpolated gradient (only used in zps case) |
---|
58 | !! --------------------- |
---|
59 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: & !: |
---|
60 | gtu, gsu, gru, & !: t-, s- and rd horizontal gradient at u- and |
---|
61 | gtv, gsv, grv !: v-points at bottom ocean level |
---|
62 | |
---|
63 | !! free surface ! before ! now ! after ! |
---|
64 | !! ------------ ! fields ! fields ! trends ! |
---|
65 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshb , sshn , ssha !: sea surface height at t-point [m] |
---|
66 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshu_b , sshu_n , sshu_a !: sea surface height at u-point [m] |
---|
67 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshv_b , sshv_n , sshv_a !: sea surface height at u-point [m] |
---|
68 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshf_b , sshf_n , sshf_a !: sea surface height at f-point [m] |
---|
69 | |
---|
70 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshbb !: before before & after sea surface height at t-point |
---|
71 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: sshn_f !: filtered now sea surface height at t-point |
---|
72 | |
---|
73 | #if defined key_dynspg_rl || defined key_esopa |
---|
74 | !! rigid-lid formulation |
---|
75 | !! --------------------- |
---|
76 | REAL(wp), PUBLIC, DIMENSION(jpi,jpj) :: & !: |
---|
77 | bsfb, bsfn, & !: before, now barotropic streamfunction (m3/s) |
---|
78 | bsfd !: now trend of barotropic streamfunction (m3/s2) |
---|
79 | #endif |
---|
80 | !!---------------------------------------------------------------------- |
---|
81 | END MODULE oce |
---|