- Timestamp:
- 2019-10-01T15:07:45+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11613_ENHANCE-04_namelists_as_internalfiles/src/SAO/nemogcm.F90
r11536 r11624 135 135 IF( lwm ) CALL ctl_opn( numout, 'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 136 136 ! open reference and configuration namelist files 137 CALL ctl_opn( numnam_ref, 'namelist_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1,-1, .FALSE. )138 CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1,-1, .FALSE. )137 CALL load_nml( numnam_ref, 'namelist_ref', -1, .FALSE. ) 138 CALL load_nml( numnam_cfg, 'namelist_cfg', -1, .FALSE. ) 139 139 IF( lwm ) CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 140 140 ! open /dev/null file to be able to supress output write easily … … 145 145 ! !--------------------! 146 146 ! 147 REWIND( numnam_ref ) ! Namelist namctl in reference namelist148 147 READ ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 149 148 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist' ) 150 REWIND( numnam_cfg ) ! Namelist namctl in confguration namelist151 149 READ ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 152 150 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist' ) … … 203 201 ! !------------------------------------! 204 202 ! 205 REWIND( numnam_ref ) ! Namelist namcfg in reference namelist206 203 READ ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 ) 207 204 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist' ) 208 REWIND( numnam_cfg ) ! Namelist namcfg in confguration namelist209 205 READ ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 210 206 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist' ) … … 363 359 IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file 364 360 IF( numrun /= -1 ) CLOSE( numrun ) ! run statistics file 365 IF( numnam_ref /= -1 ) CLOSE( numnam_ref ) ! oce reference namelist366 IF( numnam_cfg /= -1 ) CLOSE( numnam_cfg ) ! oce configuration namelist367 361 IF( lwm.AND.numond /= -1 ) CLOSE( numond ) ! oce output namelist 368 IF( numnam_ice_ref /= -1 ) CLOSE( numnam_ice_ref ) ! ice reference namelist369 IF( numnam_ice_cfg /= -1 ) CLOSE( numnam_ice_cfg ) ! ice configuration namelist370 362 IF( lwm.AND.numoni /= -1 ) CLOSE( numoni ) ! ice output namelist 371 363 IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution)
Note: See TracChangeset
for help on using the changeset viewer.