1 | MODULE trc |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE trc *** |
---|
4 | !! Passive tracers : module for tracers defined |
---|
5 | !!====================================================================== |
---|
6 | !! History : OPA ! 1996-01 (M. Levy) Original code |
---|
7 | !! - ! 2000-04 (O. Aumont, M.A. Foujols) HAMOCC3 and P3ZD |
---|
8 | !! NEMO 1.0 ! 2004-03 (C. Ethe) Free form and module |
---|
9 | !! 3.6 ! 2016-11 (A. Yool) Updated diags for CMIP6 |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | #if defined key_top |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | !! 'key_top' TOP models |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | USE par_oce |
---|
16 | USE par_trc |
---|
17 | |
---|
18 | IMPLICIT NONE |
---|
19 | PUBLIC |
---|
20 | |
---|
21 | PUBLIC trc_alloc ! called by nemogcm.F90 |
---|
22 | |
---|
23 | !! parameters for the control of passive tracers |
---|
24 | !! --------------------------------------------- |
---|
25 | INTEGER, PUBLIC :: numnat_ref = -1 !: logical unit for the reference passive tracer namelist_top_ref |
---|
26 | INTEGER, PUBLIC :: numnat_cfg = -1 !: logical unit for the reference passive tracer namelist_top_cfg |
---|
27 | INTEGER, PUBLIC :: numont = -1 !: logical unit for the reference passive tracer namelist output output.namelist.top |
---|
28 | INTEGER, PUBLIC :: numstr = -1 !: logical unit for tracer statistics |
---|
29 | INTEGER, PUBLIC :: numrtr !: logical unit for trc restart (read ) |
---|
30 | INTEGER, PUBLIC :: numrtw !: logical unit for trc restart ( write ) |
---|
31 | |
---|
32 | !! passive tracers fields (before,now,after) |
---|
33 | !! -------------------------------------------------- |
---|
34 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: trai !: initial total tracer |
---|
35 | REAL(wp), PUBLIC :: areatot !: total volume |
---|
36 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,: ) :: cvol !: volume correction -degrad option- |
---|
37 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trn !: tracer concentration for now time step |
---|
38 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: tra !: tracer concentration for next time step |
---|
39 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trb !: tracer concentration for before time step |
---|
40 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,: ) :: sbc_trc_b !: Before sbc fluxes for tracers |
---|
41 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,: ) :: sbc_trc !: Now sbc fluxes for tracers |
---|
42 | |
---|
43 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,: ) :: trc_i !: prescribed tracer concentration in sea ice for SBC |
---|
44 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,: ) :: trc_o !: prescribed tracer concentration in ocean for SBC |
---|
45 | INTEGER , PUBLIC :: nn_ice_tr !: handling of sea ice tracers |
---|
46 | |
---|
47 | !! interpolated gradient |
---|
48 | !!-------------------------------------------------- |
---|
49 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtru !: hor. gradient at u-points at bottom ocean level |
---|
50 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtrv !: hor. gradient at v-points at bottom ocean level |
---|
51 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtrui !: hor. gradient at u-points at top ocean level |
---|
52 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtrvi !: hor. gradient at v-points at top ocean level |
---|
53 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qsr_mean !: daily mean qsr |
---|
54 | |
---|
55 | !! passive tracers (input and output) |
---|
56 | !! ------------------------------------------ |
---|
57 | LOGICAL , PUBLIC :: ln_rsttr !: boolean term for restart i/o for passive tracers (namelist) |
---|
58 | LOGICAL , PUBLIC :: lrst_trc !: logical to control the trc restart write |
---|
59 | INTEGER , PUBLIC :: nn_writetrc !: time step frequency for concentration outputs (namelist) |
---|
60 | INTEGER , PUBLIC :: nutwrs !: output FILE for passive tracers restart |
---|
61 | INTEGER , PUBLIC :: nutrst !: logical unit for restart FILE for passive tracers |
---|
62 | INTEGER , PUBLIC :: nn_rsttr !: control of the time step ( 0 or 1 ) for pass. tr. |
---|
63 | CHARACTER(len = 80) , PUBLIC :: cn_trcrst_in !: suffix of pass. tracer restart name (input) |
---|
64 | CHARACTER(len = 256), PUBLIC :: cn_trcrst_indir !: restart input directory |
---|
65 | CHARACTER(len = 80) , PUBLIC :: cn_trcrst_out !: suffix of pass. tracer restart name (output) |
---|
66 | CHARACTER(len = 256), PUBLIC :: cn_trcrst_outdir !: restart output directory |
---|
67 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: rdttrc !: vertical profile of passive tracer time step |
---|
68 | LOGICAL , PUBLIC :: ln_top_euler !: boolean term for euler integration |
---|
69 | LOGICAL , PUBLIC :: ln_trcdta !: Read inputs data from files |
---|
70 | LOGICAL , PUBLIC :: ln_trcdmp !: internal damping flag |
---|
71 | LOGICAL , PUBLIC :: ln_trcdmp_clo !: internal damping flag on closed seas |
---|
72 | INTEGER , PUBLIC :: nittrc000 !: first time step of passive tracers model |
---|
73 | LOGICAL , PUBLIC :: l_trcdm2dc !: Diurnal cycle for TOP |
---|
74 | |
---|
75 | !! Information for the ice module for tracers |
---|
76 | !! ------------------------------------------ |
---|
77 | TYPE TRC_I_NML !--- Ice tracer namelist structure |
---|
78 | REAL(wp) :: trc_ratio ! ice-ocean trc ratio |
---|
79 | REAL(wp) :: trc_prescr ! prescribed ice trc cc |
---|
80 | CHARACTER(len=2) :: ctrc_o ! choice of ocean trc cc |
---|
81 | END TYPE |
---|
82 | |
---|
83 | REAL(wp), DIMENSION(jptra), PUBLIC :: trc_ice_ratio, & ! ice-ocean tracer ratio |
---|
84 | trc_ice_prescr ! prescribed ice trc cc |
---|
85 | CHARACTER(len=2), DIMENSION(jptra), PUBLIC :: cn_trc_o ! choice of ocean tracer cc |
---|
86 | |
---|
87 | !! information for outputs |
---|
88 | !! -------------------------------------------------- |
---|
89 | TYPE, PUBLIC :: PTRACER !: Passive tracer type |
---|
90 | CHARACTER(len = 20) :: clsname !: short name |
---|
91 | CHARACTER(len = 80) :: cllname !: long name |
---|
92 | CHARACTER(len = 20) :: clunit !: unit |
---|
93 | LOGICAL :: llinit !: read in a file or not |
---|
94 | LOGICAL :: llsave !: save the tracer or not |
---|
95 | END TYPE PTRACER |
---|
96 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrcnm !: tracer name |
---|
97 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrcln !: trccer field long name |
---|
98 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrcun !: tracer unit |
---|
99 | LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ln_trc_wri !: save the tracer or not |
---|
100 | |
---|
101 | TYPE, PUBLIC :: DIAG !: passive trcacer ddditional diagnostic type |
---|
102 | CHARACTER(len = 20) :: sname !: short name |
---|
103 | CHARACTER(len = 80) :: lname !: long name |
---|
104 | CHARACTER(len = 20) :: units !: unit |
---|
105 | END TYPE DIAG |
---|
106 | |
---|
107 | #if defined key_medusa && defined key_iomput |
---|
108 | TYPE, PUBLIC :: BDIAG |
---|
109 | LOGICAL :: dgsave |
---|
110 | END TYPE BDIAG |
---|
111 | |
---|
112 | TYPE, PUBLIC :: DIAG_IOM |
---|
113 | TYPE(BDIAG) INVTN, INVTSI, INVTFE, PRN, MPN, PRD, MPD, DSED, OPAL, OPALDISS, GMIPn, & |
---|
114 | GMID, MZMI, GMEPN, GMEPD, GMEZMI, GMED, MZME, DEXP, DETN, MDET, AEOLIAN, BENTHIC, & |
---|
115 | SCAVENGE, PN_JLIM, PN_NLIM, PN_FELIM, PD_JLIM, PD_NLIM, PD_FELIM, PD_SILIM, & |
---|
116 | PDSILIM2, SDT__100, SDT__200, SDT__500, SDT_1000, TOTREG_N, TOTRG_SI, REG__100, & |
---|
117 | REG__200, REG__500, REG_1000, FASTN, FASTSI, FASTFE, FASTC, FASTCA, FDT__100, & |
---|
118 | FDT__200, FDT__500, FDT_1000, RG__100F, RG__200F, RG__500F, RG_1000F, FDS__100, & |
---|
119 | FDS__200, FDS__500, FDS_1000, RGS_100F, RGS_200F, RGS_500F, RGS1000F, REMINN, & |
---|
120 | REMINSI, REMINFE, REMINC, REMINCA, SEAFLRN, SEAFLRSI, SEAFLRFE, SEAFLRC, SEAFLRCA, & |
---|
121 | MED_QSR, MED_XPAR, INTFLX_N, INTFLX_SI, INTFLX_FE, INT_PN, INT_PD, ML_PRN, ML_PRD, & |
---|
122 | OCAL_CCD, OCAL_LVL, FE_0000, FE_0100, FE_0200, FE_0500, FE_1000, MED_XZE, WIND, & |
---|
123 | ATM_PCO2, OCN_PH, OCN_PCO2, OCNH2CO3, OCN_HCO3, OCN_CO3, CO2FLUX, OM_CAL, OM_ARG, & |
---|
124 | TCO2, TALK, KW660, ATM_PP0, O2FLUX, O2SAT, CAL_CCD, ARG_CCD, SFR_OCAL, SFR_OARG, & |
---|
125 | N_PROD, N_CONS, C_PROD, C_CONS, O2_PROD, O2_CONS, O2_ANOX, RR_0100, RR_0500, & |
---|
126 | RR_1000, IBEN_N, IBEN_FE, IBEN_C, IBEN_SI, IBEN_CA, OBEN_N, OBEN_FE, OBEN_C, & |
---|
127 | OBEN_SI, OBEN_CA, BEN_N, BEN_FE, BEN_C, BEN_SI, BEN_CA, RUNOFF, RIV_N, RIV_SI, & |
---|
128 | RIV_C, RIV_ALK, DETC, SDC__100, SDC__200, SDC__500, SDC_1000, INVTC, INVTALK, & |
---|
129 | INVTO2, LYSO_CA, COM_RESP, PN_LLOSS, PD_LLOSS, ZI_LLOSS, ZE_LLOSS, ZI_MES_N, & |
---|
130 | ZI_MES_D, ZI_MES_C, ZI_MESDC, ZI_EXCR, ZI_RESP, ZI_GROW, ZE_MES_N, ZE_MES_D, & |
---|
131 | ZE_MES_C, ZE_MESDC, ZE_EXCR, ZE_RESP, ZE_GROW, MDETC, GMIDC, GMEDC, & |
---|
132 | INT_ZMI, INT_ZME, INT_DET, INT_DTC, DMS_SURF, DMS_ANDR, DMS_SIMO, DMS_ARAN, & |
---|
133 | DMS_HALL, DMS_ANDM, ATM_XCO2, OCN_FCO2, ATM_FCO2, OCN_RHOSW, OCN_SCHCO2, & |
---|
134 | OCN_KWCO2, OCN_K0, CO2STARAIR, OCN_DPCO2, & ! end of regular 2D |
---|
135 | TPP3, DETFLUX3, REMIN3N, PH3, OM_CAL3, & ! end of regular 3D |
---|
136 | ! JPALM (01/09/17): additional UKESM 2D diag |
---|
137 | CHL_MLD, & |
---|
138 | ! AXY (11/11/16): additional CMIP6 2D diagnostics |
---|
139 | epC100, epCALC100, epN100, epSI100, & |
---|
140 | FGCO2, INTDISSIC, INTDISSIN, INTDISSISI, INTTALK, O2min, ZO2min, & |
---|
141 | FBDDTALK, FBDDTDIC, FBDDTDIFE, FBDDTDIN, FBDDTDISI, & |
---|
142 | ! AXY (11/11/16): additional CMIP6 3D diagnostics |
---|
143 | TPPD3, & |
---|
144 | BDDTALK3, BDDTDIC3, BDDTDIFE3, BDDTDIN3, BDDTDISI3, & |
---|
145 | FD_NIT3, FD_SIL3, FD_CAR3, FD_CAL3, & |
---|
146 | CO33, CO3SATARAG3, CO3SATCALC3, DCALC3, & |
---|
147 | EXPC3, EXPN3, EXPCALC3, EXPSI3, & |
---|
148 | FEDISS3, FESCAV3, & |
---|
149 | MIGRAZP3, MIGRAZD3, MEGRAZP3, MEGRAZD3, MEGRAZZ3, & |
---|
150 | O2SAT3, PBSI3, PCAL3, REMOC3, & |
---|
151 | PNLIMJ3, PNLIMN3, PNLIMFE3, PDLIMJ3, PDLIMN3, PDLIMFE3, PDLIMSI3 |
---|
152 | !! |
---|
153 | !! list of all MEDUSA diagnostics that could be called by iom_use |
---|
154 | END TYPE DIAG_IOM |
---|
155 | !! |
---|
156 | TYPE(DIAG_IOM), PUBLIC :: med_diag ! define which diagnostics are asked in outputs |
---|
157 | # endif |
---|
158 | |
---|
159 | !! information for inputs |
---|
160 | !! -------------------------------------------------- |
---|
161 | LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ln_trc_ini !: Initialisation from data input file |
---|
162 | LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ln_trc_obc !: Use open boundary condition data |
---|
163 | LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ln_trc_sbc !: Use surface boundary condition data |
---|
164 | LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ln_trc_cbc !: Use coastal boundary condition data |
---|
165 | |
---|
166 | !! additional 2D/3D outputs namelist |
---|
167 | !! -------------------------------------------------- |
---|
168 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:, :) :: trc2d !: additional 2d outputs array |
---|
169 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trc3d !: additional 3d outputs array |
---|
170 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc2d !: 2d field short name |
---|
171 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc2l !: 2d field long name |
---|
172 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc2u !: 2d field unit |
---|
173 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc3d !: 3d field short name |
---|
174 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc3l !: 3d field long name |
---|
175 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc3u !: 3d field unit |
---|
176 | LOGICAL , PUBLIC :: ln_diatrc !: boolean term for additional diagnostic |
---|
177 | INTEGER , PUBLIC :: nn_writedia !: frequency of additional outputs |
---|
178 | |
---|
179 | !! Biological trends |
---|
180 | !! ----------------- |
---|
181 | LOGICAL , PUBLIC :: ln_diabio !: boolean term for biological diagnostic |
---|
182 | INTEGER , PUBLIC :: nn_writebio !: frequency of biological outputs |
---|
183 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trbio !: biological trends |
---|
184 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrbio !: bio field short name |
---|
185 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrbil !: bio field long name |
---|
186 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrbiu !: bio field unit |
---|
187 | |
---|
188 | !! variables to average over physics over passive tracer sub-steps. |
---|
189 | !! ---------------------------------------------------------------- |
---|
190 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: un_tm !: i-horizontal velocity average [m/s] |
---|
191 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: vn_tm !: j-horizontal velocity average [m/s] |
---|
192 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: tsn_tm !: t/s average [m/s] |
---|
193 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avt_tm !: vertical diffusivity coeff. at w-point [m2/s] |
---|
194 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: rhop_tm !: |
---|
195 | # if defined key_zdfddm |
---|
196 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avs_tm !: vertical double diffusivity coeff. at w-point [m/s] |
---|
197 | # endif |
---|
198 | #if defined key_ldfslp |
---|
199 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: wslpi_tm !: i-direction slope at u-, w-points |
---|
200 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: wslpj_tm !: j-direction slope at u-, w-points |
---|
201 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: uslp_tm !: j-direction slope at u-, w-points |
---|
202 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: vslp_tm !: j-direction slope at u-, w-points |
---|
203 | #endif |
---|
204 | #if defined key_trabbl |
---|
205 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahu_bbl_tm !: u-, w-points |
---|
206 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahv_bbl_tm !: j-direction slope at u-, w-points |
---|
207 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: utr_bbl_tm !: j-direction slope at u-, w-points |
---|
208 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: vtr_bbl_tm !: j-direction slope at u-, w-points |
---|
209 | #endif |
---|
210 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshn_tm !: average ssh for the now step [m] |
---|
211 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshb_hold !:hold sshb from the beginning of each sub-stepping[m] |
---|
212 | |
---|
213 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: rnf_tm !: river runoff |
---|
214 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: h_rnf_tm !: depth in metres to the bottom of the relevant grid box |
---|
215 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: hmld_tm !: mixed layer depth average [m] |
---|
216 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fr_i_tm !: average ice fraction [m/s] |
---|
217 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emp_tm !: freshwater budget: volume flux [Kg/m2/s] |
---|
218 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fmmflx_tm !: freshwater budget: freezing/melting [Kg/m2/s] |
---|
219 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emp_b_hold !: hold emp from the beginning of each sub-stepping[m] |
---|
220 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qsr_tm !: solar radiation average [m] |
---|
221 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: wndm_tm !: 10m wind average [m] |
---|
222 | ! |
---|
223 | |
---|
224 | ! Temporary physical arrays for sub_stepping |
---|
225 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: tsn_temp |
---|
226 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: un_temp,vn_temp,wn_temp !: hold current values of avt, un, vn, wn |
---|
227 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avt_temp, rhop_temp !: hold current values of avt, un, vn, wn |
---|
228 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshn_temp, sshb_temp, ssha_temp, rnf_temp,h_rnf_temp |
---|
229 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: hdivn_temp, rotn_temp |
---|
230 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: hdivb_temp, rotb_temp |
---|
231 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: hmld_temp, qsr_temp, fr_i_temp,wndm_temp |
---|
232 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emp_temp, fmmflx_temp, emp_b_temp |
---|
233 | ! |
---|
234 | #if defined key_trabbl |
---|
235 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahu_bbl_temp, ahv_bbl_temp, utr_bbl_temp, vtr_bbl_temp !: hold current values |
---|
236 | #endif |
---|
237 | ! |
---|
238 | #if defined key_ldfslp |
---|
239 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: wslpi_temp, wslpj_temp, uslp_temp, vslp_temp !: hold current values |
---|
240 | #endif |
---|
241 | ! |
---|
242 | # if defined key_zdfddm |
---|
243 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avs_temp !: salinity vertical diffusivity coeff. at w-point [m/s] |
---|
244 | # endif |
---|
245 | ! |
---|
246 | |
---|
247 | !!---------------------------------------------------------------------- |
---|
248 | !! NEMO/TOP 3.3.1 , NEMO Consortium (2010) |
---|
249 | !! $Id$ |
---|
250 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
251 | !!---------------------------------------------------------------------- |
---|
252 | CONTAINS |
---|
253 | |
---|
254 | INTEGER FUNCTION trc_alloc() |
---|
255 | !!------------------------------------------------------------------- |
---|
256 | !! *** ROUTINE trc_alloc *** |
---|
257 | !!------------------------------------------------------------------- |
---|
258 | USE lib_mpp, ONLY: ctl_warn |
---|
259 | !!------------------------------------------------------------------- |
---|
260 | ! |
---|
261 | ALLOCATE( trn(jpi,jpj,jpk,jptra), trb(jpi,jpj,jpk,jptra), tra(jpi,jpj,jpk,jptra), & |
---|
262 | & trc_i(jpi,jpj,jptra) , trc_o(jpi,jpj,jptra) , & |
---|
263 | & gtru (jpi,jpj,jptra) , gtrv (jpi,jpj,jptra) , & |
---|
264 | & gtrui(jpi,jpj,jptra) , gtrvi(jpi,jpj,jptra) , & |
---|
265 | & sbc_trc_b(jpi,jpj,jptra), sbc_trc(jpi,jpj,jptra) , & |
---|
266 | & cvol(jpi,jpj,jpk) , rdttrc(jpk) , trai(jptra) , & |
---|
267 | & ctrcnm(jptra) , ctrcln(jptra) , ctrcun(jptra) , & |
---|
268 | & ln_trc_ini(jptra) , ln_trc_wri(jptra) , qsr_mean(jpi,jpj) , STAT = trc_alloc ) |
---|
269 | |
---|
270 | IF( trc_alloc /= 0 ) CALL ctl_warn('trc_alloc: failed to allocate arrays') |
---|
271 | |
---|
272 | ! It is known that not intialising SBC_TRC can introduce NaNs |
---|
273 | sbc_trc(:,:,:) = 0.0 |
---|
274 | |
---|
275 | ! |
---|
276 | END FUNCTION trc_alloc |
---|
277 | |
---|
278 | #else |
---|
279 | !!---------------------------------------------------------------------- |
---|
280 | !! Empty module : No passive tracer |
---|
281 | !!---------------------------------------------------------------------- |
---|
282 | #endif |
---|
283 | |
---|
284 | !!====================================================================== |
---|
285 | END MODULE trc |
---|