- 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/CFC/trcini_cfc.F90
r3294 r7041 6 6 !! History : 2.0 ! 2007-12 (C. Ethe, G. Madec) 7 7 !!---------------------------------------------------------------------- 8 #if defined key_cfc9 !!----------------------------------------------------------------------10 !! 'key_cfc' CFC tracers11 8 !!---------------------------------------------------------------------- 12 9 !! trc_ini_cfc : CFC model initialisation … … 46 43 INTEGER :: iskip = 6 ! number of 1st descriptor lines 47 44 REAL(wp) :: zyy, zyd 45 CHARACTER(len = 20) :: cltra 48 46 !!---------------------------------------------------------------------- 49 47 … … 52 50 IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~' 53 51 52 53 ! assign an index in trc arrays for each CFC prognostic variables 54 jp_cfc = 1 55 IF( ln_cfc11 .AND. ln_cfc12 ) jp_cfc = 2 56 57 ! assign an index in trc arrays for each prognostic variables 58 DO jn = 1, jptra 59 cltra = ctrcnm(jn) 60 IF( cltra == 'CFC11' .OR. cltra == 'cfc11' ) jpc11 = jn 61 IF( cltra == 'CFC12' .OR. cltra == 'cfc12' ) jpc12 = jn 62 ENDDO 63 64 IF( jp_cfc == 1 ) THEN 65 IF( ln_cfc11 ) jp_cfc0 = jpc11 66 IF( ln_cfc12 ) jp_cfc0 = jpc12 67 ELSE 68 jp_cfc0 = MIN( jpc11, jpc12 ) 69 ENDIF 70 jp_cfc1 = jp_cfc0 + jp_cfc - 1 71 72 IF( lwp ) THEN 73 WRITE(numout,*) '' 74 WRITE(numout,*) ' First index of CFC tracer in the passive tracer array jp_cfc0 = ', jp_cfc0 75 WRITE(numout,*) ' Last index of CFC tracer in the passive tracer array jp_cfc1 = ', jp_cfc1 76 WRITE(numout,*) 77 ENDIF 54 78 55 79 IF(lwp) WRITE(numout,*) 'read of formatted file cfc1112atm' … … 146 170 END SUBROUTINE trc_ini_cfc 147 171 148 #else149 !!----------------------------------------------------------------------150 !! Dummy module No CFC tracers151 !!----------------------------------------------------------------------152 CONTAINS153 SUBROUTINE trc_ini_cfc ! Empty routine154 END SUBROUTINE trc_ini_cfc155 #endif156 157 172 !!====================================================================== 158 173 END MODULE trcini_cfc
Note: See TracChangeset
for help on using the changeset viewer.