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 4844 for branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO – NEMO

Ignore:
Timestamp:
2014-11-12T12:58:36+01:00 (9 years ago)
Author:
andrewryan
Message:

upgraded namelist reads to conform to NEMO standards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OOO_SRC/ooo_data.F90

    r4829 r4844  
    44   !! ================================================================= 
    55   USE par_kind, ONLY: lc 
     6   USE lib_mpp         ! distributed memory computing 
    67 
    78   IMPLICIT NONE 
     
    5354      LOGICAL :: lmask(MaxNumFiles)     !: Logical mask used for counting 
    5455      LOGICAL, INTENT(IN) :: ld_cl4     !: Logical class 4 on/off 
     56      INTEGER :: ios 
    5557 
    5658      ! Standard offline obs_oper information 
     
    8587 
    8688      ! Standard offline obs_oper settings 
    87       READ(numnam_ref, namooo) 
     89      REWIND( numnam_ref )              ! Namelist namctl in reference namelist : Control prints & Benchmark 
     90      READ  ( numnam_ref, namooo, IOSTAT = ios, ERR = 901 ) 
     91901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namooo in reference namelist', .TRUE. ) 
     92 
     93      REWIND( numnam_cfg )              ! Namelist namctl in confguration namelist : Control prints & Benchmark 
     94      READ  ( numnam_cfg, namooo, IOSTAT = ios, ERR = 902 ) 
     95902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namooo in configuration namelist', .TRUE. ) 
    8896 
    8997      ! Read class 4 output settings 
    9098      IF (ld_cl4) THEN 
    91          READ(numnam_ref, namcl4) 
     99         REWIND( numnam_ref )              ! Namelist namctl in reference namelist : Control prints & Benchmark 
     100         READ  ( numnam_ref, namcl4, IOSTAT = ios, ERR = 903 ) 
     101903      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcl4 in reference namelist', .TRUE. ) 
     102 
     103         REWIND( numnam_cfg )              ! Namelist namctl in confguration namelist : Control prints & Benchmark 
     104         READ  ( numnam_cfg, namcl4, IOSTAT = ios, ERR = 904 ) 
     105904      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcl4 in configuration namelist', .TRUE. ) 
    92106      ENDIF 
    93107 
Note: See TracChangeset for help on using the changeset viewer.