- Timestamp:
- 2016-10-19T12:55:07+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r6701 r7041 59 59 IF(lwp) WRITE(numout,*) '~~~~~~~' 60 60 61 IF( .NOT.lk_offline ) CALL trc_nam_run ! Parameters of the run 61 62 ! 62 63 CALL top_alloc() ! allocate TOP arrays 63 64 ! 64 65 CALL trc_ini_ctl ! control 65 !66 66 CALL trc_nam ! read passive tracers namelists 67 67 ! 68 ! 68 69 IF(lwp) WRITE(numout,*) 69 !70 70 IF( ln_rsttr .AND. .NOT. lk_offline ) CALL trc_rst_cal( nit000, 'READ' ) ! calendar 71 !72 71 IF(lwp) WRITE(numout,*) 73 72 ! 74 73 CALL trc_ini_sms ! SMS 75 !76 74 CALL trc_ini_trp ! passive tracers transport 77 !78 75 CALL trc_ice_ini ! Tracers in sea ice 79 76 ! 80 IF( lwp ) & 81 & CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp , narea ) 77 IF(lwp) CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp , narea ) 82 78 ! 83 79 CALL trc_ini_state ! passive tracers initialisation : from a restart or from clim 84 ! 85 IF( nn_dttrc /= 1 ) CALL trc_sub_ini ! Initialize variables for substepping passive tracers 86 ! 80 IF( nn_dttrc /= 1 ) & 81 CALL trc_sub_ini ! Initialize variables for substepping passive tracers 87 82 CALL trc_ini_inv ! Inventories 88 83 ! … … 120 115 cvol(:,:,jk) = e1e2t(:,:) * e3t_n(:,:,jk) * tmask(:,:,jk) 121 116 END DO 122 IF( lk_degrad ) cvol(:,:,:) = cvol(:,:,:) * facvol(:,:,:) ! degrad option: reduction by facvol123 117 ! ! total volume of the ocean 124 118 areatot = glob_sum( cvol(:,:,:) ) … … 158 152 !! ** Purpose : SMS initialisation 159 153 !!---------------------------------------------------------------------- 160 USE trcini_cfc ! CFC initialisation 161 USE trcini_pisces ! PISCES initialisation 162 USE trcini_c14b ! C14 bomb initialisation 163 USE trcini_my_trc ! MY_TRC initialisation 164 !!---------------------------------------------------------------------- 165 IF( lk_pisces ) CALL trc_ini_pisces ! PISCES bio-model 166 IF( lk_cfc ) CALL trc_ini_cfc ! CFC tracers 167 IF( lk_c14b ) CALL trc_ini_c14b ! C14 bomb tracer 168 IF( lk_my_trc ) CALL trc_ini_my_trc ! MY_TRC tracers 154 USE par_trc 155 USE trcini_pisces ! PISCES initialisation 156 USE trcini_cfc ! CFC initialisation 157 USE trcini_c14 ! C14 initialisation 158 USE trcini_age ! age initialisation 159 USE trcini_my_trc ! MY_TRC initialisation 160 !!---------------------------------------------------------------------- 161 jp_lc = 0 162 IF( lk_pisces ) THEN ! PISCES bio-model 163 CALL trc_ini_pisces 164 jp_lc = jp_pisces 165 ELSE 166 jp_pisces = 0 167 jp_pcs0 = 0 168 jp_pcs1 = 0 169 ENDIF 170 IF( lk_my_trc ) THEN ! MY_TRC 171 CALL trc_ini_my_trc 172 jp_lc = jp_lc + jp_my_trc 173 ELSE 174 jp_my_trc = 0 175 jp_myt0 = 0 176 jp_myt1 = 0 177 ENDIF 178 IF( ll_cfc ) THEN ! CFC 179 CALL trc_ini_cfc 180 jp_lc = jp_lc + jp_cfc 181 ELSE 182 jp_cfc = 0 183 jp_cfc0 = 0 184 jp_cfc1 = 0 185 ENDIF 186 IF( ln_c14 ) THEN ! C14 187 CALL trc_ini_c14 188 jp_lc = jp_lc + jp_c14 189 ELSE 190 jp_c14 = 0 191 jp_c140 = 0 192 ENDIF 193 IF( ln_age ) THEN ! AGE 194 CALL trc_ini_age 195 jp_lc = jp_lc + jp_age 196 ELSE 197 jp_age = 0 198 jp_age0 = 0 199 ENDIF 200 ! 201 IF( jp_lc /= jptra ) THEN 202 IF( lwp ) WRITE(numout,*) ' The total number of tracers in namelist_top jptra = ', jptra 203 IF( lwp ) WRITE(numout,*) ' The total number of tracers to be used by the model is jp_lc = ', jp_lc 204 CALL ctl_stop( " Change the value of total number of tracers in namelist " ) 205 ENDIF 169 206 ! 170 207 END SUBROUTINE trc_ini_sms
Note: See TracChangeset
for help on using the changeset viewer.