Ignore:
Timestamp:
2013-11-20T16:33:46+01:00 (7 years ago)
Author:
cetlod
Message:

fix to lwp use for namelist reads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_CMCC_INGV_MERC_UKMO_2013/NEMOGCM/NEMO/OFF_SRC/nemogcm.F90

    r4230 r4290  
    150150         &             jpizoom, jpjzoom, jperio 
    151151      !!---------------------------------------------------------------------- 
    152       ! 
    153152      cltxt = '' 
    154153      ! 
     
    156155      CALL ctl_opn( numnam_ref, 'namelist_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 
    157156      CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 
    158       CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE., narea ) 
    159       ! 
     157      CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. , 1 ) 
    160158      ! 
    161159      REWIND( numnam_ref )              ! Namelist namctl in reference namelist : Control prints & Benchmark 
    162160      READ  ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 
    163 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist', lwp ) 
     161901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist', .TRUE. ) 
    164162 
    165163      REWIND( numnam_cfg )              ! Namelist namctl in confguration namelist : Control prints & Benchmark 
    166164      READ  ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 
    167 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist', lwp ) 
     165902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist', .TRUE. ) 
    168166      WRITE( numond, namctl ) 
     167 
    169168      ! 
    170169      REWIND( numnam_ref )              ! Namelist namcfg in reference namelist : Control prints & Benchmark 
    171170      READ  ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 ) 
    172 903   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist', lwp ) 
     171903   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist', .TRUE. ) 
    173172 
    174173      REWIND( numnam_cfg )              ! Namelist namcfg in confguration namelist : Control prints & Benchmark 
    175174      READ  ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 
    176 904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist', lwp )    
     175904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist', .TRUE. )    
    177176      WRITE( numond, namcfg ) 
     177 
     178      ! 
    178179      !                             !--------------------------------------------! 
    179180      !                             !  set communicator & select the local node  ! 
Note: See TracChangeset for help on using the changeset viewer.