- Timestamp:
- 2013-04-18T16:38:06+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90
r3769 r3875 218 218 INTEGER :: ji ! dummy loop indices 219 219 INTEGER :: ilocal_comm ! local integer 220 INTEGER :: ios 220 221 CHARACTER(len=80), DIMENSION(16) :: cltxt 221 222 !! … … 227 228 cltxt = '' 228 229 ! 229 ! ! open Namelist file 230 CALL ctl_opn( numnam, 'namelist', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 231 ! 232 READ( numnam, namctl ) ! Namelist namctl : Control prints & Benchmark 230 ! ! Open reference namelist and configuration namelist files 231 CALL ctl_opn( numnam_ref, 'namelist_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 232 CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 233 CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE., narea ) 234 ! 235 REWIND( numnam_ref ) ! Namelist namctl in reference namelist : Control prints & Benchmark 236 READ ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 237 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist', lwp ) 238 239 REWIND( numnam_cfg ) ! Namelist namctl in confguration namelist : Control prints & Benchmark 240 READ ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 241 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist', lwp ) 242 WRITE( numond, namctl ) 233 243 ! 234 244 ! !--------------------------------------------! … … 244 254 # endif 245 255 ENDIF 246 narea = mynode( cltxt, numnam , nstop, ilocal_comm ) ! Nodes selection256 narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) ! Nodes selection 247 257 #else 248 258 # if defined key_oasis3 || defined key_oasis4 … … 250 260 CALL cpl_prism_init( ilocal_comm ) ! nemo local communicator given by oasis 251 261 ENDIF 252 narea = mynode( cltxt, numnam , nstop, ilocal_comm ) ! Nodes selection (control print return in cltxt)262 narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) ! Nodes selection (control print return in cltxt) 253 263 # else 254 264 ilocal_comm = 0 255 narea = mynode( cltxt, numnam , nstop ) ! Nodes selection (control print return in cltxt)265 narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop ) ! Nodes selection (control print return in cltxt) 256 266 # endif 257 267 #endif … … 510 520 CALL iom_close ! close all input/output files managed by iom_* 511 521 ! 512 IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file 513 IF( numsol /= -1 ) CLOSE( numsol ) ! solver file 514 IF( numnam /= -1 ) CLOSE( numnam ) ! oce namelist 515 IF( numnam_ice /= -1 ) CLOSE( numnam_ice ) ! ice namelist 516 IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution) 517 IF( numout /= 6 ) CLOSE( numout ) ! standard model output file 518 IF( numdct_vol /= -1 ) CLOSE( numdct_vol ) ! volume transports 519 IF( numdct_heat /= -1 ) CLOSE( numdct_heat ) ! heat transports 520 IF( numdct_salt /= -1 ) CLOSE( numdct_salt ) ! salt transports 522 IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file 523 IF( numsol /= -1 ) CLOSE( numsol ) ! solver file 524 IF( numnam_ref /= -1 ) CLOSE( numnam_ref ) ! oce reference namelist 525 IF( numnam_cfg /= -1 ) CLOSE( numnam_cfg ) ! oce configuration namelist 526 IF( numnam_ice_ref /= -1 ) CLOSE( numnam_ice_ref ) ! ice reference namelist 527 IF( numnam_ice_cfg /= -1 ) CLOSE( numnam_ice_cfg ) ! ice configuration namelist 528 IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution) 529 IF( numout /= 6 ) CLOSE( numout ) ! standard model output file 530 IF( numdct_vol /= -1 ) CLOSE( numdct_vol ) ! volume transports 531 IF( numdct_heat /= -1 ) CLOSE( numdct_heat ) ! heat transports 532 IF( numdct_salt /= -1 ) CLOSE( numdct_salt ) ! salt transports 521 533 522 534 !
Note: See TracChangeset
for help on using the changeset viewer.