- Timestamp:
- 2017-02-17T16:38:26+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_MEDUSA_optim_RH/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r7692 r7693 8 8 !! 2.0 ! 2005-10 (C. Ethe, G. Madec) revised architecture 9 9 !! 4.0 ! 2011-01 (A. R. Porter, STFC Daresbury) dynamical allocation 10 !! - ! 2014-06 (A. Yool, J. Palmieri) adding MEDUSA-2 10 11 !!---------------------------------------------------------------------- 11 12 #if defined key_top … … 24 25 USE trcini_c14b ! C14 bomb initialisation 25 26 USE trcini_my_trc ! MY_TRC initialisation 27 USE trcini_medusa ! MEDUSA initialisation 28 USE trcini_idtra ! idealize tracer initialisation 29 USE trcini_age ! AGE initialisation 26 30 USE trcdta ! initialisation from files 27 31 USE daymod ! calendar manager … … 77 81 & CALL ctl_warn(' Coupling with passive tracers and used of diurnal cycle. & 78 82 & Computation of a daily mean shortwave for some biogeochemical models) ') 79 83 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 84 !!!!! CHECK For MEDUSA 85 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 80 86 IF( nn_cla == 1 ) & 81 87 & CALL ctl_stop( ' Cross Land Advection not yet implemented with passive tracer ; nn_cla must be 0' ) … … 98 104 99 105 IF( lk_pisces ) CALL trc_ini_pisces ! PISCES bio-model 106 IF( lk_medusa ) CALL trc_ini_medusa ! MEDUSA tracers 107 IF( lk_idtra ) CALL trc_ini_idtra ! Idealize tracers 100 108 IF( lk_cfc ) CALL trc_ini_cfc ! CFC tracers 101 109 IF( lk_c14b ) CALL trc_ini_c14b ! C14 bomb tracer 110 IF( lk_age ) CALL trc_ini_age ! AGE tracer 102 111 IF( lk_my_trc ) CALL trc_ini_my_trc ! MY_TRC tracers 103 112 104 113 CALL trc_ice_ini ! Tracers in sea ice 114 115 # if defined key_debug_medusa 116 IF (lwp) write (numout,*) '------------------------------' 117 IF (lwp) write (numout,*) 'Jpalm - debug' 118 IF (lwp) write (numout,*) ' in trc_init' 119 IF (lwp) write (numout,*) ' sms init OK' 120 IF (lwp) write (numout,*) ' next: open tracer.stat' 121 IF (lwp) write (numout,*) ' ' 122 CALL flush(numout) 123 # endif 105 124 106 125 IF( lwp ) THEN … … 110 129 ENDIF 111 130 112 IF( ln_trcdta ) CALL trc_dta_init(jptra) 113 131 # if defined key_debug_medusa 132 IF (lwp) write (numout,*) '------------------------------' 133 IF (lwp) write (numout,*) 'Jpalm - debug' 134 IF (lwp) write (numout,*) ' in trc_init' 135 IF (lwp) write (numout,*) 'open tracer.stat -- OK' 136 IF (lwp) write (numout,*) ' ' 137 CALL flush(numout) 138 # endif 139 140 141 IF( ln_trcdta ) THEN 142 #if defined key_medusa 143 IF(lwp) WRITE(numout,*) 'AXY: calling trc_dta_init' 144 IF(lwp) CALL flush(numout) 145 #endif 146 CALL trc_dta_init(jptra) 147 ENDIF 114 148 115 149 IF( ln_rsttr ) THEN 116 150 ! 151 #if defined key_medusa 152 IF(lwp) WRITE(numout,*) 'AXY: calling trc_rst_read' 153 IF(lwp) CALL flush(numout) 154 #endif 117 155 CALL trc_rst_read ! restart from a file 118 156 ! … … 141 179 ENDIF 142 180 ! 181 # if defined key_debug_medusa 182 IF (lwp) write (numout,*) '------------------------------' 183 IF (lwp) write (numout,*) 'Jpalm - debug' 184 IF (lwp) write (numout,*) ' in trc_init' 185 IF (lwp) write (numout,*) ' before trb = trn' 186 IF (lwp) write (numout,*) ' ' 187 CALL flush(numout) 188 # endif 189 ! 143 190 trb(:,:,:,:) = trn(:,:,:,:) 191 ! 192 # if defined key_debug_medusa 193 IF (lwp) write (numout,*) '------------------------------' 194 IF (lwp) write (numout,*) 'Jpalm - debug' 195 IF (lwp) write (numout,*) ' in trc_init' 196 IF (lwp) write (numout,*) ' trb = trn -- OK' 197 IF (lwp) write (numout,*) ' ' 198 CALL flush(numout) 199 # endif 144 200 ! 145 201 ENDIF … … 150 206 IF( ln_zps .AND. .NOT. lk_c1d .AND. ln_isfcav ) & 151 207 & CALL zps_hde_isf( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, pgtui=gtrui, pgtvi=gtrvi ) ! tracers at the bottom ocean level 152 153 208 ! 209 # if defined key_debug_medusa 210 IF (lwp) write (numout,*) '------------------------------' 211 IF (lwp) write (numout,*) 'Jpalm - debug' 212 IF (lwp) write (numout,*) ' in trc_init' 213 IF (lwp) write (numout,*) ' partial step -- OK' 214 IF (lwp) write (numout,*) ' ' 215 CALL flush(numout) 216 # endif 154 217 ! 155 218 IF( nn_dttrc /= 1 ) CALL trc_sub_ini ! Initialize variables for substepping passive tracers 156 219 ! 157 220 # if defined key_debug_medusa 221 IF (lwp) write (numout,*) '------------------------------' 222 IF (lwp) write (numout,*) 'Jpalm - debug' 223 IF (lwp) write (numout,*) ' in trc_init' 224 IF (lwp) write (numout,*) ' before initiate tracer contents' 225 IF (lwp) write (numout,*) ' ' 226 CALL flush(numout) 227 # endif 228 ! 158 229 trai(:) = 0._wp ! initial content of all tracers 159 230 DO jn = 1, jptra … … 168 239 WRITE(numout,*) ' *** Total inital content of all tracers ' 169 240 WRITE(numout,*) 241 # if defined key_debug_medusa 242 CALL flush(numout) 243 # endif 244 ! 245 # if defined key_debug_medusa 246 WRITE(numout,*) ' litle check : ', ctrcnm(1) 247 CALL flush(numout) 248 # endif 170 249 DO jn = 1, jptra 171 250 WRITE(numout,9000) jn, TRIM( ctrcnm(jn) ), trai(jn) … … 180 259 CALL prt_ctl_trc( tab4d=trn, mask=tmask, clinfo=ctrcnm ) 181 260 ENDIF 261 262 IF(lwp) WRITE(numout,*) 263 IF(lwp) WRITE(numout,*) 'trc_init : passive tracer set up completed' 264 IF(lwp) WRITE(numout,*) '~~~~~~~' 265 IF(lwp) CALL flush(numout) 266 # if defined key_debug_medusa 267 CALL trc_rst_stat 268 CALL flush(numout) 269 # endif 270 182 271 9000 FORMAT(' tracer nb : ',i2,' name :',a10,' initial content :',e18.10) 183 272 !
Note: See TracChangeset
for help on using the changeset viewer.