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 4147 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/module_example – NEMO

Ignore:
Timestamp:
2013-11-04T12:51:55+01:00 (11 years ago)
Author:
cetlod
Message:

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/module_example

    r2737 r4147  
    1313   !!   'key_example'  :                brief description of the key option 
    1414   !!---------------------------------------------------------------------- 
    15    !!   exa_mpl       : liste of module subroutine (caution, never use the 
     15   !!   exa_mpl       : list of module subroutine (caution, never use the 
    1616   !!   exa_mpl_init  : name of the module for a routine) 
    1717   !!   exa_mpl_stp   : Please try to use 3 letter block for routine names 
     
    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      
    161162      !!---------------------------------------------------------------------- 
    162163      ! 
    163       sn_ex%clname ='toto'                      ! set default namelist values 
    164       sn_ex%nfreqh = 2  
    165       ! 
    166       REWIND( numnam )                          ! Read Namelist namexa : example parameters 
    167       READ  ( numnam, namexa ) 
     164      REWIND( numnam_ref )              ! Namelist namexa in reference namelist : Example 
     165      READ  ( numnam_ref, namexa, IOSTAT = ios, ERR = 901) 
     166901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namexa in reference namelist', lwp ) 
     167 
     168      REWIND( numnam_cfg )              ! Namelist namexa in configuration namelist : Example 
     169      READ  ( numnam_cfg, namexa, IOSTAT = ios, ERR = 902 ) 
     170902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namexa in configuration namelist', lwp ) 
     171   ! Output namelist for control 
     172      WRITE ( numond, namexa ) 
    168173      ! 
    169174      IF(lwp) THEN                              ! Control print 
     
    173178         WRITE(numout,*) '   Namelist namexa : set example parameters' 
    174179         WRITE(numout,*) '      brief desciption               exa_v1  = ', exa_v1 
    175          WRITE(numout,*) '      brief desciption               exa_v1  = ', exa_v1 
     180         WRITE(numout,*) '      brief desciption               exa_v2  = ', exa_v2 
    176181         WRITE(numout,*) '      brief desciption               nexa_0  = ', nexa_0 
    177182         WRITE(numout,*) '      brief desciption          sn_ex%clname = ', sn_ex%clname 
Note: See TracChangeset for help on using the changeset viewer.