Changeset 2715 for trunk/NEMOGCM/NEMO/TOP_SRC/C14b/trcini_c14b.F90
- Timestamp:
- 2011-03-30T17:58:35+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/C14b/trcini_c14b.F90
r2528 r2715 4 4 !! TOP : initialisation of the C14 bomb tracer 5 5 !!====================================================================== 6 !! History : Original ! 2005-10 (Z. Lachkar)7 !! 2.0 ! 2007-12 (C. Ethe)6 !! History : 1.0 ! 2005-10 (Z. Lachkar) Original code 7 !! 2.0 ! 2007-12 (C. Ethe) 8 8 !!---------------------------------------------------------------------- 9 9 #if defined key_c14b … … 17 17 USE trc ! TOP variables 18 18 USE trcsms_c14b ! C14 sms trends 19 USE in_out_manager ! I/O manager20 19 21 20 IMPLICIT NONE … … 24 23 PUBLIC trc_ini_c14b ! called by trcini.F90 module 25 24 26 INTEGER :: & ! With respect to data file !! 27 jpybeg = 1765 , & !: starting year for C14 28 jpyend = 2002 !: ending year for C14 29 30 INTEGER :: & 31 nrec , & ! number of year in CO2 Concentrations file 32 nmaxrec 33 34 INTEGER :: inum1, inum2 ! unit number 35 36 REAL(wp) :: & 37 ys40 = -40. , & ! 40 degrees south 38 ys20 = -20. , & ! 20 degrees south 39 yn20 = 20. , & ! 20 degrees north 40 yn40 = 40. ! 40 degrees north 41 42 !!--------------------------------------------------------------------- 25 ! ! With respect to data file !! 26 INTEGER :: jpybeg = 1765 ! starting year for C14 27 INTEGER :: jpyend = 2002 ! ending year for C14 28 INTEGER :: nrec ! number of year in CO2 Concentrations file 29 INTEGER :: nmaxrec 30 INTEGER :: inum1, inum2 ! unit number 31 32 REAL(wp) :: ys40 = -40. ! 40 degrees south 33 REAL(wp) :: ys20 = -20. ! 20 degrees south 34 REAL(wp) :: yn20 = 20. ! 20 degrees north 35 REAL(wp) :: yn40 = 40. ! 40 degrees north 36 37 !!---------------------------------------------------------------------- 43 38 !! NEMO/TOP 3.3 , NEMO Consortium (2010) 44 39 !! $Id$ 45 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 46 !!---------------------------------------------------------------------- 47 40 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 41 !!---------------------------------------------------------------------- 48 42 CONTAINS 49 43 … … 59 53 !!---------------------------------------------------------------------- 60 54 61 ! Control consitency 62 CALL trc_ctl_c14b 55 ! ! Allocate C14b arrays 56 IF( trc_sms_c14b_alloc() /= 0 ) CALL ctl_stop( 'STOP', 'trc_ini_c14b : unable to allocate C14b arrays' ) 57 58 CALL trc_ctl_c14b ! Control consitency 63 59 64 60 IF(lwp) WRITE(numout,*) '' … … 69 65 ! Initialization of boundaries conditions 70 66 ! --------------------------------------- 71 qtr_c14(:,:) = 0. e067 qtr_c14(:,:) = 0._wp 72 68 73 69 ! Initialization of qint in case of no restart … … 78 74 WRITE(numout,*) 'Initialization de qint ; No restart : qint equal zero ' 79 75 ENDIF 80 trn (:,:,:,jpc14) = 0. e081 qint_c14(:,: ) = 0. e076 trn (:,:,:,jpc14) = 0._wp 77 qint_c14(:,: ) = 0._wp 82 78 ENDIF 83 79 … … 156 152 fareaz(ji,jj,3) = 0. 157 153 ENDIF 158 END DO 159 END DO 160 154 END DO 155 END DO 161 156 ! 162 157 IF(lwp) WRITE(numout,*) 'Initialization of C14 bomb tracer done' 163 158 IF(lwp) WRITE(numout,*) ' ' 164 159 ! 165 160 END SUBROUTINE trc_ini_c14b 166 161 162 167 163 SUBROUTINE trc_ctl_c14b 168 164 !!---------------------------------------------------------------------- … … 179 175 ! Check number of tracers 180 176 ! ----------------------- 181 IF( jp_c14b > 1) CALL ctl_stop( ' Change jp_c14b to be equal 1 in par_c14b.F90' )177 IF( jp_c14b > 1) CALL ctl_stop( ' Change jp_c14b to be equal 1 in par_c14b.F90' ) 182 178 183 179 ! Check tracer names 184 180 ! ------------------ 185 IF 186 187 181 IF( ctrcnm(jpc14) /= 'C14B' ) THEN 182 ctrcnm(jpc14) = 'C14B' 183 ctrcnl(jpc14) = 'Bomb C14 concentration' 188 184 ENDIF 189 185 … … 197 193 ! ------------------ 198 194 IF( ctrcun(jpc14) /= 'ration' ) THEN 199 ctrcun(jpc14) = 'ration'195 ctrcun(jpc14) = 'ration' 200 196 IF(lwp) THEN 201 197 CALL ctl_warn( ' we force tracer unit' ) … … 206 202 ! 207 203 END SUBROUTINE trc_ctl_c14b 204 208 205 #else 209 206 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.