New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 3875 for branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsms.F90 – NEMO

Ignore:
Timestamp:
2013-04-18T16:38:06+02:00 (11 years ago)
Author:
clevy
Message:

Configuration Setting/Step? 1, see ticket:#1074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsms.F90

    r3780 r3875  
    166166      NAMELIST/nampisdmp/ ln_pisdmp, nn_pisdmp, ln_pisclo 
    167167      NAMELIST/nampismass/ ln_check_mass 
    168       !!---------------------------------------------------------------------- 
    169  
    170  
    171       REWIND( numnatp ) 
    172       READ  ( numnatp, nampisbio ) 
     168      INTEGER :: ios                 ! Local integer output status for namelist read 
     169      !!---------------------------------------------------------------------- 
     170 
     171      REWIND( numnatp_ref )              ! Namelist nampisbio in reference namelist : Pisces variables 
     172      READ  ( numnatp_ref, nampisbio, IOSTAT = ios, ERR = 901) 
     173901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisbio in reference namelist', lwp ) 
     174 
     175      REWIND( numnatp_cfg )              ! Namelist nampisbio in configuration namelist : Pisces variables 
     176      READ  ( numnatp_cfg, nampisbio, IOSTAT = ios, ERR = 902 ) 
     177902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisbio in configuration namelist', lwp ) 
     178      WRITE ( numonp, nampisbio ) 
    173179 
    174180      IF(lwp) THEN                         ! control print 
     
    193199      xkr_mass_max = 1. 
    194200 
    195       REWIND( numnatp )                     ! read natkriest 
    196       READ  ( numnatp, nampiskrp ) 
     201      REWIND( numnatp_ref )              ! Namelist nampiskrp in reference namelist : Pisces Kriest 
     202      READ  ( numnatp_ref, nampiskrp, IOSTAT = ios, ERR = 903) 
     203903   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampiskrp in reference namelist', lwp ) 
     204 
     205      REWIND( numnatp_cfg )              ! Namelist nampiskrp in configuration namelist : Pisces Kriest 
     206      READ  ( numnatp_cfg, nampiskrp, IOSTAT = ios, ERR = 904 ) 
     207904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampiskrp in configuration namelist', lwp ) 
     208      WRITE ( numonp, nampiskrp ) 
    197209 
    198210      IF(lwp) THEN 
     
    217229      ln_pisclo = .false. 
    218230 
    219       REWIND( numnatp ) 
    220       READ  ( numnatp, nampisdmp ) 
     231      REWIND( numnatp_ref )              ! Namelist nampisdmp in reference namelist : Pisces damping 
     232      READ  ( numnatp_ref, nampisdmp, IOSTAT = ios, ERR = 905) 
     233905   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdmp in reference namelist', lwp ) 
     234 
     235      REWIND( numnatp_cfg )              ! Namelist nampisdmp in configuration namelist : Pisces damping 
     236      READ  ( numnatp_cfg, nampisdmp, IOSTAT = ios, ERR = 906 ) 
     237906   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdmp in configuration namelist', lwp ) 
     238      WRITE ( numonp, nampisdmp ) 
    221239 
    222240      IF(lwp) THEN                         ! control print 
     
    230248 
    231249      ln_check_mass = .false. 
    232       REWIND( numnatp )        
    233       READ  ( numnatp, nampismass ) 
     250      REWIND( numnatp_ref )              ! Namelist nampismass in reference namelist : Pisces mass conservation check 
     251      READ  ( numnatp_ref, nampismass, IOSTAT = ios, ERR = 907) 
     252907   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismass in reference namelist', lwp ) 
     253 
     254      REWIND( numnatp_cfg )              ! Namelist nampismass in configuration namelist : Pisces mass conservation check  
     255      READ  ( numnatp_cfg, nampismass, IOSTAT = ios, ERR = 908 ) 
     256908   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampismass in configuration namelist', lwp ) 
     257      WRITE ( numonp, nampismass ) 
     258 
    234259      IF(lwp) THEN                         ! control print 
    235260         WRITE(numout,*) ' ' 
Note: See TracChangeset for help on using the changeset viewer.