- Timestamp:
- 2019-12-12T09:59:50+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/OFF/nemogcm.F90
r12026 r12202 194 194 IF( lwm ) CALL ctl_opn( numout, 'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 195 195 ! open reference and configuration namelist files 196 CALL ctl_opn( numnam_ref, 'namelist_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE.)197 CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE.)196 CALL load_nml( numnam_ref, 'namelist_ref', -1, lwm ) 197 CALL load_nml( numnam_cfg, 'namelist_cfg', -1, lwm ) 198 198 IF( lwm ) CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 199 199 ! open /dev/null file to be able to supress output write easily … … 204 204 ! !--------------------! 205 205 ! 206 REWIND( numnam_ref ) ! Namelist namctl in reference namelist207 206 READ ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 208 207 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist' ) 209 REWIND( numnam_cfg ) ! Namelist namctl in confguration namelist210 208 READ ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 211 209 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist' ) … … 262 260 ! !------------------------------------! 263 261 ! 264 REWIND( numnam_ref ) ! Namelist namcfg in reference namelist265 262 READ ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 ) 266 263 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist' ) 267 REWIND( numnam_cfg ) ! Namelist namcfg in confguration namelist268 264 READ ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 269 265 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist' ) … … 448 444 ! 449 445 IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file 450 IF( numnam_ref /= -1 ) CLOSE( numnam_ref ) ! oce reference namelist451 IF( numnam_cfg /= -1 ) CLOSE( numnam_cfg ) ! oce configuration namelist452 IF( numout /= 6 ) CLOSE( numout ) ! standard model output file453 446 IF( lwm.AND.numond /= -1 ) CLOSE( numond ) ! oce output namelist 454 447 !
Note: See TracChangeset
for help on using the changeset viewer.