- Timestamp:
- 2017-12-26T17:32:56+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/CFC/trcnam_cfc.F90
r7646 r9169 24 24 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 25 25 !!---------------------------------------------------------------------- 26 27 26 CONTAINS 28 27 … … 38 37 !! ** input : Namelist namcfc 39 38 !!---------------------------------------------------------------------- 40 INTEGER :: ios ! Local integer output status for namelist read41 INTEGER :: jl, jn39 INTEGER :: ios ! Local integer 40 INTEGER :: jl, jn 42 41 !! 43 42 NAMELIST/namcfc/ ndate_beg, nyear_res, clname 44 43 !!---------------------------------------------------------------------- 44 ! 45 IF(lwp) THEN 46 WRITE(numout,*) ' ' 47 WRITE(numout,*) ' CFCs' 48 WRITE(numout,*) ' ' 49 WRITE(numout,*) ' trc_nam_cfc : Read namcfc namelist for CFC chemical model' 50 WRITE(numout,*) ' ~~~~~~~~~~~' 51 ENDIF 52 ! 53 REWIND( numtrc_ref ) ! Namelist namcfcdate in reference namelist : CFC parameters 54 READ ( numtrc_ref, namcfc, IOSTAT = ios, ERR = 901) 55 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfc in reference namelist', lwp ) 56 REWIND( numtrc_cfg ) ! Namelist namcfcdate in configuration namelist : CFC parameters 57 READ ( numtrc_cfg, namcfc, IOSTAT = ios, ERR = 902 ) 58 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namcfc in configuration namelist', lwp ) 59 IF(lwm) WRITE( numonr, namcfc ) 60 IF(lwm) CALL FLUSH ( numonr ) ! flush output namelist CFC 61 62 IF(lwp) THEN ! control print 63 WRITE(numout,*) ' Namelist : namcfc' 64 WRITE(numout,*) ' initial calendar date (aammjj) for CFC ndate_beg = ', ndate_beg, '[yymmdd]' 65 WRITE(numout,*) ' restoring time constant (year) nyear_res = ', nyear_res 66 ENDIF 67 nyear_beg = ndate_beg / 10000 68 IF(lwp) WRITE(numout,*) ' associated initial year (aa) nyear_beg = ', nyear_beg, '[yy]' 45 69 ! 46 70 jn = jp_cfc0 - 1 … … 79 103 ENDIF 80 104 ! 81 REWIND( numtrc_ref ) ! Namelist namcfcdate in reference namelist : CFC parameters82 READ ( numtrc_ref, namcfc, IOSTAT = ios, ERR = 901)83 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfc in reference namelist', lwp )84 85 REWIND( numtrc_cfg ) ! Namelist namcfcdate in configuration namelist : CFC parameters86 READ ( numtrc_cfg, namcfc, IOSTAT = ios, ERR = 902 )87 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfc in configuration namelist', lwp )88 IF(lwm) WRITE ( numonr, namcfc )89 90 IF(lwp) THEN ! control print91 WRITE(numout,*) ' '92 WRITE(numout,*) ' CFCs'93 WRITE(numout,*) ' '94 WRITE(numout,*) ' trc_nam: Read namdates, namelist for CFC chemical model'95 WRITE(numout,*) ' ~~~~~~~'96 WRITE(numout,*) ' initial calendar date (aammjj) for CFC ndate_beg = ', ndate_beg97 WRITE(numout,*) ' restoring time constant (year) nyear_res = ', nyear_res98 ENDIF99 nyear_beg = ndate_beg / 10000100 IF(lwp) WRITE(numout,*) ' initial year (aa) nyear_beg = ', nyear_beg101 !102 IF(lwm) CALL FLUSH ( numonr ) ! flush output namelist CFC103 104 105 END SUBROUTINE trc_nam_cfc 105 106
Note: See TracChangeset
for help on using the changeset viewer.