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