[186] | 1 | MODULE trc |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trc *** |
---|
| 4 | !! Passive tracers : module for tracers defined |
---|
| 5 | !!====================================================================== |
---|
[2528] | 6 | !! History : OPA ! 1996-01 (M. Levy) Original code |
---|
[945] | 7 | !! - ! 2000-04 (O. Aumont, M.A. Foujols) HAMOCC3 and P3ZD |
---|
[2528] | 8 | !! NEMO 1.0 ! 2004-03 (C. Ethe) Free form and module |
---|
[186] | 9 | !!---------------------------------------------------------------------- |
---|
[945] | 10 | #if defined key_top |
---|
[186] | 11 | !!---------------------------------------------------------------------- |
---|
[945] | 12 | !! 'key_top' TOP models |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
[186] | 14 | USE par_oce |
---|
| 15 | USE par_trc |
---|
[945] | 16 | |
---|
[186] | 17 | IMPLICIT NONE |
---|
| 18 | PUBLIC |
---|
| 19 | |
---|
[2715] | 20 | PUBLIC trc_alloc ! called by nemogcm.F90 |
---|
| 21 | |
---|
[186] | 22 | !! parameters for the control of passive tracers |
---|
| 23 | !! -------------------------------------------------- |
---|
[3294] | 24 | INTEGER, PUBLIC :: numnat !: logicla unit for the passive tracer NAMELIST |
---|
| 25 | INTEGER, PUBLIC :: numstr !: logical unit for tracer statistics |
---|
[3653] | 26 | INTEGER, PUBLIC :: numrtr !: logical unit for trc restart (read ) |
---|
| 27 | INTEGER, PUBLIC :: numrtw !: logical unit for trc restart ( write ) |
---|
[186] | 28 | |
---|
| 29 | !! passive tracers fields (before,now,after) |
---|
| 30 | !! -------------------------------------------------- |
---|
[3294] | 31 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: trai !: initial total tracer |
---|
| 32 | REAL(wp), PUBLIC :: areatot !: total volume |
---|
| 33 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,: ) :: cvol !: volume correction -degrad option- |
---|
| 34 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trn !: traceur concentration for now time step |
---|
| 35 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: tra !: traceur concentration for next time step |
---|
| 36 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trb !: traceur concentration for before time step |
---|
[186] | 37 | |
---|
[2528] | 38 | !! interpolated gradient |
---|
| 39 | !!-------------------------------------------------- |
---|
[3294] | 40 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtru !: hor. gradient at u-points at bottom ocean level |
---|
| 41 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtrv !: hor. gradient at v-points at bottom ocean level |
---|
[186] | 42 | |
---|
[3294] | 43 | !! passive tracers (input and output) |
---|
[945] | 44 | !! ------------------------------------------ |
---|
[3294] | 45 | LOGICAL , PUBLIC :: ln_rsttr !: boolean term for restart i/o for passive tracers (namelist) |
---|
| 46 | LOGICAL , PUBLIC :: lrst_trc !: logical to control the trc restart write |
---|
| 47 | INTEGER , PUBLIC :: nn_dttrc !: frequency of step on passive tracers |
---|
| 48 | INTEGER , PUBLIC :: nn_writetrc !: time step frequency for concentration outputs (namelist) |
---|
| 49 | INTEGER , PUBLIC :: nutwrs !: output FILE for passive tracers restart |
---|
| 50 | INTEGER , PUBLIC :: nutrst !: logical unit for restart FILE for passive tracers |
---|
| 51 | INTEGER , PUBLIC :: nn_rsttr !: control of the time step ( 0 or 1 ) for pass. tr. |
---|
| 52 | CHARACTER(len = 80) , PUBLIC :: cn_trcrst_in !: suffix of pass. tracer restart name (input) |
---|
| 53 | CHARACTER(len = 80) , PUBLIC :: cn_trcrst_out !: suffix of pass. tracer restart name (output) |
---|
| 54 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: rdttrc !: vertical profile of passive tracer time step |
---|
| 55 | LOGICAL , PUBLIC :: ln_trcdta !: Read inputs data from files |
---|
| 56 | LOGICAL , PUBLIC :: ln_trcdmp !: internal damping flag |
---|
| 57 | INTEGER , PUBLIC :: nittrc000 !: first time step of passive tracers model |
---|
| 58 | |
---|
[186] | 59 | !! information for outputs |
---|
| 60 | !! -------------------------------------------------- |
---|
[3294] | 61 | TYPE, PUBLIC :: PTRACER !: Passive tracer type |
---|
| 62 | CHARACTER(len = 20) :: clsname !: short name |
---|
| 63 | CHARACTER(len = 80) :: cllname !: long name |
---|
| 64 | CHARACTER(len = 20) :: clunit !: unit |
---|
| 65 | LOGICAL :: llinit !: read in a file or not |
---|
| 66 | LOGICAL :: llsave !: save the tracer or not |
---|
| 67 | END TYPE PTRACER |
---|
| 68 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrcnm !: tracer name |
---|
| 69 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrcln !: trccer field long name |
---|
| 70 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrcun !: tracer unit |
---|
| 71 | LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ln_trc_ini !: Initialisation from data input file |
---|
| 72 | LOGICAL , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ln_trc_wri !: save the tracer or not |
---|
| 73 | |
---|
| 74 | TYPE, PUBLIC :: DIAG !: passive trcacer ddditional diagnostic type |
---|
| 75 | CHARACTER(len = 20) :: sname !: short name |
---|
| 76 | CHARACTER(len = 80) :: lname !: long name |
---|
| 77 | CHARACTER(len = 20) :: units !: unit |
---|
| 78 | END TYPE DIAG |
---|
| 79 | |
---|
[186] | 80 | !! additional 2D/3D outputs namelist |
---|
| 81 | !! -------------------------------------------------- |
---|
[3294] | 82 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:, :) :: trc2d !: additional 2d outputs array |
---|
| 83 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trc3d !: additional 3d outputs array |
---|
| 84 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc2d !: 2d field short name |
---|
| 85 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc2l !: 2d field long name |
---|
| 86 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc2u !: 2d field unit |
---|
| 87 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc3d !: 3d field short name |
---|
| 88 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc3l !: 3d field long name |
---|
| 89 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrc3u !: 3d field unit |
---|
| 90 | LOGICAL , PUBLIC :: ln_diatrc !: boolean term for additional diagnostic |
---|
| 91 | INTEGER , PUBLIC :: nn_writedia !: frequency of additional outputs |
---|
[945] | 92 | |
---|
[1077] | 93 | !! Biological trends |
---|
| 94 | !! ----------------- |
---|
[3294] | 95 | LOGICAL , PUBLIC :: ln_diabio !: boolean term for biological diagnostic |
---|
| 96 | INTEGER , PUBLIC :: nn_writebio !: frequency of biological outputs |
---|
| 97 | REAL(wp) , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: trbio !: biological trends |
---|
| 98 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrbio !: bio field short name |
---|
| 99 | CHARACTER(len = 80), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrbil !: bio field long name |
---|
| 100 | CHARACTER(len = 20), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ctrbiu !: bio field unit |
---|
| 101 | |
---|
| 102 | !! variables to average over physics over passive tracer sub-steps. |
---|
| 103 | !! ---------------------------------------------------------------- |
---|
| 104 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: un_tm !: i-horizontal velocity average [m/s] |
---|
| 105 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: vn_tm !: j-horizontal velocity average [m/s] |
---|
| 106 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: tsn_tm !: t/s average [m/s] |
---|
| 107 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avt_tm !: vertical diffusivity coeff. at w-point [m2/s] |
---|
| 108 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: rhop_tm !: |
---|
| 109 | # if defined key_zdfddm |
---|
| 110 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avs_tm !: vertical double diffusivity coeff. at w-point [m/s] |
---|
[1077] | 111 | # endif |
---|
[3294] | 112 | #if defined key_ldfslp |
---|
| 113 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: wslpi_tm !: i-direction slope at u-, w-points |
---|
| 114 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: wslpj_tm !: j-direction slope at u-, w-points |
---|
| 115 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: uslp_tm !: j-direction slope at u-, w-points |
---|
| 116 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: vslp_tm !: j-direction slope at u-, w-points |
---|
| 117 | #endif |
---|
| 118 | #if defined key_trabbl |
---|
| 119 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahu_bbl_tm !: u-, w-points |
---|
| 120 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahv_bbl_tm !: j-direction slope at u-, w-points |
---|
| 121 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: utr_bbl_tm !: j-direction slope at u-, w-points |
---|
| 122 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: vtr_bbl_tm !: j-direction slope at u-, w-points |
---|
| 123 | #endif |
---|
| 124 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshn_tm !: average ssh for the now step [m] |
---|
| 125 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshu_n_tm !: average ssh for the now step [m] |
---|
| 126 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshv_n_tm !: average ssh for the now step [m] |
---|
| 127 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshb_hold !:hold sshb from the beginning of each sub-stepping[m] |
---|
| 128 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshu_b_hold !:hold sshb from the beginning of each sub-stepping[m] |
---|
| 129 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshv_b_hold !:hold sshb from the beginning of each sub-stepping[m] |
---|
[1077] | 130 | |
---|
[3294] | 131 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: rnf_tm !: river runoff |
---|
| 132 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: h_rnf_tm !: depth in metres to the bottom of the relevant grid box |
---|
| 133 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: hmld_tm !: mixed layer depth average [m] |
---|
| 134 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fr_i_tm !: average ice fraction [m/s] |
---|
| 135 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emp_tm !: freshwater budget: volume flux [Kg/m2/s] |
---|
| 136 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emps_tm !: freshwater budget:concentration/dilution [Kg/m2/s] |
---|
| 137 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emp_b_hold !: hold emp from the beginning of each sub-stepping[m] |
---|
| 138 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: qsr_tm !: solar radiation average [m] |
---|
| 139 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: wndm_tm !: 10m wind average [m] |
---|
| 140 | ! |
---|
| 141 | #if defined key_traldf_c3d |
---|
| 142 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ahtt_tm, ahtu_tm, ahtv_tm, ahtw_tm !: ** 3D coefficients ** at T-,U-,V-,W-points |
---|
| 143 | #elif defined key_traldf_c2d |
---|
| 144 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahtt_tm, ahtu_tm, ahtv_tm, ahtw_tm !: ** 2D coefficients ** at T-,U-,V-,W-points |
---|
| 145 | #elif defined key_traldf_c1d |
---|
| 146 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ahtt_tm, ahtu_tm, ahtv_tm, ahtw_tm !: ** 1D coefficients ** at T-,U-,V-,W-points |
---|
| 147 | #else |
---|
| 148 | REAL(wp), PUBLIC :: ahtt_tm, ahtu_tm, ahtv_tm, ahtw_tm !: ** 0D coefficients ** at T-,U-,V-,W-points |
---|
| 149 | #endif |
---|
| 150 | ! |
---|
| 151 | #if defined key_traldf_eiv |
---|
| 152 | # if defined key_traldf_c3d |
---|
| 153 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: aeiu_tm , aeiv_tm , aeiw_tm !: ** 3D coefficients ** |
---|
| 154 | # elif defined key_traldf_c2d |
---|
| 155 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: aeiu_tm , aeiv_tm , aeiw_tm !: ** 2D coefficients ** |
---|
| 156 | # elif defined key_traldf_c1d |
---|
| 157 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: aeiu_tm , aeiv_tm, aeiw_tm !: ** 1D coefficients ** |
---|
| 158 | # else |
---|
| 159 | REAL(wp), PUBLIC :: aeiu_tm , aeiv_tm , aeiw_tm !: ** 0D coefficients ** |
---|
| 160 | # endif |
---|
| 161 | #endif |
---|
| 162 | |
---|
| 163 | ! Temporary physical arrays for sub_stepping |
---|
| 164 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: tsn_temp |
---|
| 165 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: un_temp,vn_temp,wn_temp !: hold current values of avt, un, vn, wn |
---|
| 166 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avt_temp, rhop_temp !: hold current values of avt, un, vn, wn |
---|
| 167 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: e3t_temp,e3u_temp,e3v_temp,e3w_temp !: hold current values |
---|
| 168 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshn_temp, sshb_temp, ssha_temp, rnf_temp,h_rnf_temp |
---|
| 169 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshu_n_temp, sshu_b_temp, sshu_a_temp |
---|
| 170 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshf_n_temp |
---|
| 171 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshv_n_temp, sshv_b_temp, sshv_a_temp |
---|
| 172 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: hu_temp, hv_temp, hur_temp, hvr_temp |
---|
| 173 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: hdivn_temp, rotn_temp |
---|
| 174 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: hdivb_temp, rotb_temp |
---|
| 175 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: hmld_temp, qsr_temp, fr_i_temp,wndm_temp |
---|
| 176 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: emp_temp, emps_temp, emp_b_temp |
---|
| 177 | ! |
---|
| 178 | #if defined key_trabbl |
---|
| 179 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahu_bbl_temp, ahv_bbl_temp, utr_bbl_temp, vtr_bbl_temp !: hold current values |
---|
| 180 | #endif |
---|
| 181 | ! |
---|
| 182 | #if defined key_ldfslp |
---|
| 183 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: wslpi_temp, wslpj_temp, uslp_temp, vslp_temp !: hold current values |
---|
| 184 | #endif |
---|
| 185 | ! |
---|
| 186 | # if defined key_zdfddm |
---|
| 187 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: avs_temp !: salinity vertical diffusivity coeff. at w-point [m/s] |
---|
[945] | 188 | # endif |
---|
[3294] | 189 | ! |
---|
| 190 | #if defined key_traldf_c3d |
---|
| 191 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ahtt_temp, ahtu_temp, ahtv_temp, ahtw_temp |
---|
| 192 | #elif defined key_traldf_c2d |
---|
| 193 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ahtt_temp, ahtu_temp, ahtv_temp, ahtw_temp |
---|
| 194 | #elif defined key_traldf_c1d |
---|
| 195 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: ahtt_temp, ahtu_temp, ahtv_temp, ahtw_temp |
---|
| 196 | #else |
---|
| 197 | REAL(wp), PUBLIC :: ahtt_temp, ahtu_temp, ahtv_temp, ahtw_temp |
---|
| 198 | #endif |
---|
| 199 | ! |
---|
| 200 | #if defined key_traldf_eiv |
---|
| 201 | # if defined key_traldf_c3d |
---|
| 202 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: aeiu_temp , aeiv_temp , aeiw_temp !: ** 3D coefficients ** |
---|
| 203 | # elif defined key_traldf_c2d |
---|
| 204 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: aeiu_temp , aeiv_temp , aeiw_temp !: ** 2D coefficients ** |
---|
| 205 | # elif defined key_traldf_c1d |
---|
| 206 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: aeiu_temp , aeiv_temp, aeiw_temp !: ** 1D coefficients ** |
---|
| 207 | # else |
---|
| 208 | REAL(wp), PUBLIC :: aeiu_temp , aeiv_temp , aeiw_temp !: ** 0D coefficients ** |
---|
| 209 | # endif |
---|
| 210 | # endif |
---|
[186] | 211 | |
---|
[2715] | 212 | !!---------------------------------------------------------------------- |
---|
| 213 | !! NEMO/TOP 3.3.1 , NEMO Consortium (2010) |
---|
| 214 | !! $Id$ |
---|
| 215 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 216 | !!---------------------------------------------------------------------- |
---|
| 217 | CONTAINS |
---|
| 218 | |
---|
| 219 | INTEGER FUNCTION trc_alloc() |
---|
| 220 | !!------------------------------------------------------------------- |
---|
| 221 | !! *** ROUTINE trc_alloc *** |
---|
| 222 | !!------------------------------------------------------------------- |
---|
| 223 | USE lib_mpp, ONLY: ctl_warn |
---|
| 224 | !!------------------------------------------------------------------- |
---|
| 225 | ! |
---|
[3294] | 226 | ALLOCATE( trn(jpi,jpj,jpk,jptra), trb(jpi,jpj,jpk,jptra), tra(jpi,jpj,jpk,jptra), & |
---|
| 227 | & gtru(jpi,jpj,jpk) , gtrv(jpi,jpj,jpk) , & |
---|
| 228 | & cvol(jpi,jpj,jpk) , rdttrc(jpk) , trai(jptra) , & |
---|
| 229 | & ctrcnm(jptra) , ctrcln(jptra) , ctrcun(jptra) , & |
---|
| 230 | & ln_trc_ini(jptra) , ln_trc_wri(jptra) , STAT = trc_alloc ) |
---|
[2715] | 231 | |
---|
| 232 | IF( trc_alloc /= 0 ) CALL ctl_warn('trc_alloc: failed to allocate arrays') |
---|
| 233 | ! |
---|
| 234 | END FUNCTION trc_alloc |
---|
| 235 | |
---|
[945] | 236 | #else |
---|
| 237 | !!---------------------------------------------------------------------- |
---|
| 238 | !! Empty module : No passive tracer |
---|
| 239 | !!---------------------------------------------------------------------- |
---|
[439] | 240 | #endif |
---|
| 241 | |
---|
[186] | 242 | !!====================================================================== |
---|
| 243 | END MODULE trc |
---|