1 | MODULE oce_trc |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE oce_trc *** |
---|
4 | !! TOP : variables shared between ocean and passive tracers |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 2004-03 (C. Ethe) original code |
---|
7 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) rewritting |
---|
8 | !!---------------------------------------------------------------------- |
---|
9 | #if defined key_top |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! 'key_top' TOP models |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | |
---|
14 | !* Domain size * |
---|
15 | USE par_oce , ONLY : cp_cfg => cp_cfg !: name of the configuration |
---|
16 | USE par_oce , ONLY : jp_cfg => jp_cfg !: resolution of the configuration |
---|
17 | USE par_oce , ONLY : jpiglo => jpiglo !: first dimension of global domain --> i |
---|
18 | USE par_oce , ONLY : jpjglo => jpjglo !: second dimension of global domain --> j |
---|
19 | USE par_oce , ONLY : jpi => jpi !: first dimension of grid --> i |
---|
20 | USE par_oce , ONLY : jpj => jpj !: second dimension of grid --> j |
---|
21 | USE par_oce , ONLY : jpk => jpk !: number of levels |
---|
22 | USE par_oce , ONLY : jpim1 => jpim1 !: jpi - 1 |
---|
23 | USE par_oce , ONLY : jpjm1 => jpjm1 !: jpj - 1 |
---|
24 | USE par_oce , ONLY : jpkm1 => jpkm1 !: jpk - 1 |
---|
25 | USE par_oce , ONLY : jpij => jpij !: jpi x jpj |
---|
26 | USE par_oce , ONLY : jpidta => jpidta !: first horizontal dimension > or = jpi |
---|
27 | USE par_oce , ONLY : jpjdta => jpjdta !: second horizontal dimension > or = jpj |
---|
28 | USE par_oce , ONLY : jpkdta => jpkdta !: number of levels > or = jpk |
---|
29 | USE par_oce , ONLY : lk_esopa => lk_esopa !: flag to activate the all option |
---|
30 | USE par_oce , ONLY : jp_tem => jp_tem !: indice for temperature |
---|
31 | USE par_oce , ONLY : jp_sal => jp_sal !: indice for salinity |
---|
32 | |
---|
33 | !* IO manager * |
---|
34 | USE in_out_manager |
---|
35 | |
---|
36 | !* Memory Allocation * |
---|
37 | USE wrk_nemo |
---|
38 | |
---|
39 | !* Timing * |
---|
40 | USE timing |
---|
41 | |
---|
42 | !* MPP library |
---|
43 | USE lib_mpp |
---|
44 | |
---|
45 | !* Fortran utilities |
---|
46 | USE lib_fortran |
---|
47 | |
---|
48 | !* Lateral boundary conditions |
---|
49 | USE lbclnk |
---|
50 | |
---|
51 | !* physical constants * |
---|
52 | USE phycst |
---|
53 | |
---|
54 | !* 1D configuration |
---|
55 | USE c1d |
---|
56 | |
---|
57 | !* model domain * |
---|
58 | USE dom_oce |
---|
59 | |
---|
60 | |
---|
61 | !* ocean fields: here now and after fields * |
---|
62 | USE oce , ONLY : ua => ua !: i-horizontal velocity (m s-1) |
---|
63 | USE oce , ONLY : va => va !: j-horizontal velocity (m s-1) |
---|
64 | USE oce , ONLY : un => un !: i-horizontal velocity (m s-1) |
---|
65 | USE oce , ONLY : vn => vn !: j-horizontal velocity (m s-1) |
---|
66 | USE oce , ONLY : wn => wn !: vertical velocity (m s-1) |
---|
67 | USE oce , ONLY : tsn => tsn !: 4D array contaning ( tn, sn ) |
---|
68 | USE oce , ONLY : tsb => tsb !: 4D array contaning ( tb, sb ) |
---|
69 | USE oce , ONLY : tsa => tsa !: 4D array contaning ( ta, sa ) |
---|
70 | USE oce , ONLY : rhop => rhop !: potential volumic mass (kg m-3) |
---|
71 | USE oce , ONLY : rhd => rhd !: in situ density anomalie rhd=(rho-rau0)/rau0 (no units) |
---|
72 | USE oce , ONLY : hdivn => hdivn !: horizontal divergence (1/s) |
---|
73 | USE oce , ONLY : rotn => rotn !: relative vorticity [s-1] |
---|
74 | USE oce , ONLY : hdivb => hdivb !: horizontal divergence (1/s) |
---|
75 | USE oce , ONLY : rotb => rotb !: relative vorticity [s-1] |
---|
76 | USE oce , ONLY : sshn => sshn !: sea surface height at t-point [m] |
---|
77 | USE oce , ONLY : sshb => sshb !: sea surface height at t-point [m] |
---|
78 | USE oce , ONLY : ssha => ssha !: sea surface height at t-point [m] |
---|
79 | USE oce , ONLY : sshu_n => sshu_n !: sea surface height at u-point [m] |
---|
80 | USE oce , ONLY : sshu_b => sshu_b !: sea surface height at u-point [m] |
---|
81 | USE oce , ONLY : sshu_a => sshu_a !: sea surface height at u-point [m] |
---|
82 | USE oce , ONLY : sshv_n => sshv_n !: sea surface height at v-point [m] |
---|
83 | USE oce , ONLY : sshv_b => sshv_b !: sea surface height at v-point [m] |
---|
84 | USE oce , ONLY : sshv_a => sshv_a !: sea surface height at v-point [m] |
---|
85 | USE oce , ONLY : sshf_n => sshf_n !: sea surface height at v-point [m] |
---|
86 | USE oce , ONLY : l_traldf_rot => l_traldf_rot !: rotated laplacian operator for lateral diffusion |
---|
87 | #if defined key_offline |
---|
88 | USE oce , ONLY : gtsu => gtsu !: t-, s- and rd horizontal gradient at u- and |
---|
89 | USE oce , ONLY : gtsv => gtsv !: |
---|
90 | USE oce , ONLY : gru => gru !: |
---|
91 | USE oce , ONLY : grv => grv !: |
---|
92 | #endif |
---|
93 | |
---|
94 | !* surface fluxes * |
---|
95 | USE sbc_oce , ONLY : utau => utau !: i-surface stress component |
---|
96 | USE sbc_oce , ONLY : vtau => vtau !: j-surface stress component |
---|
97 | USE sbc_oce , ONLY : wndm => wndm !: 10m wind speed |
---|
98 | USE sbc_oce , ONLY : qsr => qsr !: penetrative solar radiation (w m-2) |
---|
99 | USE sbc_oce , ONLY : emp => emp !: freshwater budget: volume flux [Kg/m2/s] |
---|
100 | USE sbc_oce , ONLY : emp_b => emp_b !: freshwater budget: volume flux [Kg/m2/s] |
---|
101 | USE sbc_oce , ONLY : fmmflx => fmmflx !: freshwater budget: volume flux [Kg/m2/s] |
---|
102 | USE sbc_oce , ONLY : rnf => rnf !: river runoff [Kg/m2/s] |
---|
103 | USE sbc_oce , ONLY : ln_dm2dc => ln_dm2dc !: Daily mean to Diurnal Cycle short wave (qsr) |
---|
104 | USE sbc_oce , ONLY : ln_rnf => ln_rnf !: runoffs / runoff mouths |
---|
105 | USE sbc_oce , ONLY : fr_i => fr_i !: ice fraction (between 0 to 1) |
---|
106 | USE traqsr , ONLY : rn_abs => rn_abs !: fraction absorbed in the very near surface |
---|
107 | USE traqsr , ONLY : rn_si0 => rn_si0 !: very near surface depth of extinction |
---|
108 | USE traqsr , ONLY : ln_qsr_bio => ln_qsr_bio !: flag to use or not the biological fluxes for light |
---|
109 | USE sbcrnf , ONLY : rnfmsk => rnfmsk !: mixed adv scheme in runoffs vicinity (hori.) |
---|
110 | USE sbcrnf , ONLY : rnfmsk_z => rnfmsk_z !: mixed adv scheme in runoffs vicinity (vert.) |
---|
111 | USE sbcrnf , ONLY : h_rnf => h_rnf !: river runoff [Kg/m2/s] |
---|
112 | |
---|
113 | USE trc_oce |
---|
114 | |
---|
115 | !* lateral diffusivity (tracers) * |
---|
116 | USE ldftra_oce , ONLY : rldf => rldf !: multiplicative coef. for lateral diffusivity |
---|
117 | USE ldftra_oce , ONLY : rn_aht_0 => rn_aht_0 !: horizontal eddy diffusivity for tracers (m2/s) |
---|
118 | USE ldftra_oce , ONLY : aht0 => aht0 !: horizontal eddy diffusivity for tracers (m2/s) |
---|
119 | USE ldftra_oce , ONLY : ahtb0 => ahtb0 !: background eddy diffusivity for isopycnal diff. (m2/s) |
---|
120 | USE ldftra_oce , ONLY : ahtu => ahtu !: lateral diffusivity coef. at u-points |
---|
121 | USE ldftra_oce , ONLY : ahtv => ahtv !: lateral diffusivity coef. at v-points |
---|
122 | USE ldftra_oce , ONLY : ahtw => ahtw !: lateral diffusivity coef. at w-points |
---|
123 | USE ldftra_oce , ONLY : ahtt => ahtt !: lateral diffusivity coef. at t-points |
---|
124 | USE ldftra_oce , ONLY : aeiv0 => aeiv0 !: eddy induced velocity coefficient (m2/s) |
---|
125 | USE ldftra_oce , ONLY : aeiu => aeiu !: eddy induced velocity coef. at u-points (m2/s) |
---|
126 | USE ldftra_oce , ONLY : aeiv => aeiv !: eddy induced velocity coef. at v-points (m2/s) |
---|
127 | USE ldftra_oce , ONLY : aeiw => aeiw !: eddy induced velocity coef. at w-points (m2/s) |
---|
128 | USE ldftra_oce , ONLY : lk_traldf_eiv => lk_traldf_eiv !: eddy induced velocity flag |
---|
129 | |
---|
130 | !* vertical diffusion * |
---|
131 | USE zdf_oce , ONLY : avt => avt !: vert. diffusivity coef. at w-point for temp |
---|
132 | # if defined key_zdfddm |
---|
133 | USE zdfddm , ONLY : avs => avs !: salinity vertical diffusivity coeff. at w-point |
---|
134 | # endif |
---|
135 | |
---|
136 | !* mixing & mixed layer depth * |
---|
137 | USE zdfmxl , ONLY : nmln => nmln !: number of level in the mixed layer |
---|
138 | USE zdfmxl , ONLY : hmld => hmld !: mixing layer depth (turbocline) |
---|
139 | USE zdfmxl , ONLY : hmlp => hmlp !: mixed layer depth (rho=rho0+zdcrit) (m) |
---|
140 | USE zdfmxl , ONLY : hmlpt => hmlpt !: mixed layer depth at t-points (m) |
---|
141 | |
---|
142 | !* direction of lateral diffusion * |
---|
143 | USE ldfslp , ONLY : lk_ldfslp => lk_ldfslp !: slopes flag |
---|
144 | # if defined key_ldfslp |
---|
145 | USE ldfslp , ONLY : uslp => uslp !: i-direction slope at u-, w-points |
---|
146 | USE ldfslp , ONLY : vslp => vslp !: j-direction slope at v-, w-points |
---|
147 | USE ldfslp , ONLY : wslpi => wslpi !: i-direction slope at u-, w-points |
---|
148 | USE ldfslp , ONLY : wslpj => wslpj !: j-direction slope at v-, w-points |
---|
149 | # endif |
---|
150 | |
---|
151 | #else |
---|
152 | !!---------------------------------------------------------------------- |
---|
153 | !! Empty module : No passive tracer |
---|
154 | !!---------------------------------------------------------------------- |
---|
155 | #endif |
---|
156 | |
---|
157 | !!---------------------------------------------------------------------- |
---|
158 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
159 | !! $Id$ |
---|
160 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
161 | !!====================================================================== |
---|
162 | END MODULE oce_trc |
---|