Changeset 11624 for NEMO/branches/2019/dev_r11613_ENHANCE-04_namelists_as_internalfiles/src/TOP/trcnam.F90
- Timestamp:
- 2019-10-01T15:07:45+02:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11613_ENHANCE-04_namelists_as_internalfiles/src/TOP/trcnam.F90
r11536 r11624 108 108 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 109 109 ! 110 CALL ctl_opn( numnat_ref, 'namelist_top_ref' , 'OLD' , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )111 CALL ctl_opn( numnat_cfg, 'namelist_top_cfg' , 'OLD' , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )110 CALL load_nml( numnat_ref, 'namelist_top_ref' , numout, .FALSE. ) 111 CALL load_nml( numnat_cfg, 'namelist_top_cfg' , numout, .FALSE. ) 112 112 IF(lwm) CALL ctl_opn( numont, 'output.namelist.top', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE., 1 ) 113 113 ! 114 REWIND( numnat_ref ) ! Namelist namtrc in reference namelist : Passive tracer variables115 114 READ ( numnat_ref, namtrc_run, IOSTAT = ios, ERR = 901) 116 115 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc in reference namelist' ) 117 REWIND( numnat_cfg ) ! Namelist namtrc in configuration namelist : Passive tracer variables118 116 READ ( numnat_cfg, namtrc_run, IOSTAT = ios, ERR = 902 ) 119 117 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtrc in configuration namelist' ) … … 158 156 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 159 157 160 REWIND( numnat_ref ) ! Namelist namtrc in reference namelist : Passive tracer variables161 158 READ ( numnat_ref, namtrc, IOSTAT = ios, ERR = 901) 162 159 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc in reference namelist' ) 163 REWIND( numnat_cfg ) ! Namelist namtrc in configuration namelist : Passive tracer variables164 160 READ ( numnat_cfg, namtrc, IOSTAT = ios, ERR = 902 ) 165 161 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtrc in configuration namelist' ) … … 228 224 IF( ll_cfc .OR. ln_c14 ) THEN 229 225 ! ! Open namelist files 230 CALL ctl_opn( numtrc_ref, 'namelist_trc_ref' , 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )231 CALL ctl_opn( numtrc_cfg, 'namelist_trc_cfg' , 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. )226 CALL load_nml( numtrc_ref, 'namelist_trc_ref' , numout, .FALSE. ) 227 CALL load_nml( numtrc_cfg, 'namelist_trc_cfg' , numout, .FALSE. ) 232 228 IF(lwm) CALL ctl_opn( numonr, 'output.namelist.trc', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 233 229 ! … … 261 257 ALLOCATE( ln_trdtrc(jptra) ) 262 258 ! 263 REWIND( numnat_ref ) ! Namelist namtrc_trd in reference namelist : Passive tracer trends264 259 READ ( numnat_ref, namtrc_trd, IOSTAT = ios, ERR = 905) 265 260 905 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_trd in reference namelist' ) 266 REWIND( numnat_cfg ) ! Namelist namtrc_trd in configuration namelist : Passive tracer trends267 261 READ ( numnat_cfg, namtrc_trd, IOSTAT = ios, ERR = 906 ) 268 262 906 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtrc_trd in configuration namelist' )
Note: See TracChangeset
for help on using the changeset viewer.