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/OPA_SRC/module_example – 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/OPA_SRC/module_example

    r2737 r3875  
    157157      !!---------------------------------------------------------------------- 
    158158      INTEGER ::   ji, jj, jk, jit   ! dummy loop indices 
     159      INTEGER  ::   ios              ! Local integer output status for namelist read 
    159160      !! 
    160161      NAMELIST/namexa/ exa_v1, exa_v2, nexa_0, sn_ex      
     
    164165      sn_ex%nfreqh = 2  
    165166      ! 
    166       REWIND( numnam )                          ! Read Namelist namexa : example parameters 
    167       READ  ( numnam, namexa ) 
     167      REWIND( numnam_ref )              ! Namelist namexa in reference namelist : Example 
     168      READ  ( numnam_ref, namexa, IOSTAT = ios, ERR = 901) 
     169901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namexa in reference namelist', lwp ) 
     170 
     171      REWIND( numnam_cfg )              ! Namelist namexa in configuration namelist : Example 
     172      READ  ( numnam_cfg, namexa, IOSTAT = ios, ERR = 902 ) 
     173902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namexa in configuration namelist', lwp ) 
     174   ! Output namelist for control 
     175      WRITE ( numond, namexa ) 
    168176      ! 
    169177      IF(lwp) THEN                              ! Control print 
Note: See TracChangeset for help on using the changeset viewer.