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 1119 for trunk/NEMO/OFF_SRC/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2008-06-20T17:17:41+02:00 (16 years ago)
Author:
cetlod
Message:

style of all top namelist has been modified ; update modules to take it into account, see ticket:196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OFF_SRC/DOM/domain.F90

    r974 r1119  
    108108      INTEGER ::   ioptio = 0      ! temporary integer 
    109109 
    110       NAMELIST/nam_run/ no    , cexper   , ln_rstart , nrstdt , nit000,          & 
    111          &             nitend, ndate0   , nleapy   , ninist , nstock,           & 
    112          &             nprint, nwrite   , ln_ctl , nictls, nictle,   & 
     110      NAMELIST/namrun/ no    , cexper   , ln_rstart , nrstdt , nit000,         & 
     111         &             nitend, ndate0   , nleapy    , ninist , nstock,         & 
     112         &             nwrite  
     113 
     114      NAMELIST/namctl/ ln_ctl , nprint, nictls, nictle,   & 
    113115         &             njctls, njctle   , nbench   , isplt  , jsplt 
    114116 
    115       NAMELIST/nam_zgr/ ln_zco, ln_zps, ln_sco 
    116  
    117       NAMELIST/nam_dom/ e3zps_min, e3zps_rat, nmsh  ,   & 
     117      NAMELIST/namzgr/ ln_zco, ln_zps, ln_sco 
     118 
     119      NAMELIST/namdom/ e3zps_min, e3zps_rat, nmsh  ,   & 
    118120         &             nacc  , atfp     , rdt      , rdtmin , rdtmax,   & 
    119121         &             rdth  
    120122 
    121       NAMELIST/nam_cla/ n_cla 
     123      NAMELIST/namcla/ n_cla 
    122124      !!---------------------------------------------------------------------- 
    123125 
     
    130132      ! Namelist namrun : parameters of the run 
    131133      REWIND( numnam ) 
    132       READ  ( numnam, nam_run ) 
     134      READ  ( numnam, namrun ) 
    133135 
    134136      IF(lwp) THEN 
     
    143145         WRITE(numout,*) '           leap year calendar (0/1)        nleapy    = ', nleapy 
    144146         WRITE(numout,*) '           initial state output            ninist    = ', ninist 
    145          WRITE(numout,*) '           level of print                  nprint    = ', nprint 
    146147         WRITE(numout,*) '           frequency of restart file       nstock    = ', nstock 
    147148         WRITE(numout,*) '           frequency of output file        nwrite    = ', nwrite 
     149      ENDIF 
     150 
     151      ndastp = ndate0                ! Assign initial date to current date 
     152 
     153     ! Namelist namctl : print control 
     154      REWIND( numnam ) 
     155      READ  ( numnam, namctl ) 
     156 
     157      IF(lwp) THEN 
     158         WRITE(numout,*) '        Namelist namctl' 
    148159         WRITE(numout,*) '           run control (for debugging)     ln_ctl    = ', ln_ctl 
     160         WRITE(numout,*) '           level of print                  nprint    = ', nprint 
    149161         WRITE(numout,*) '           Start i indice for SUM control  nictls    = ', nictls 
    150162         WRITE(numout,*) '           End i indice for SUM control    nictle    = ', nictle 
     
    157169 
    158170      ndastp = ndate0                ! Assign initial date to current date 
    159  
    160171! ... Control the sub-domain area indices for the print control 
    161172      IF(ln_ctl)   THEN 
     
    267278      ENDIF 
    268279 
    269       ! Read Namelist nam_zgr : vertical coordinate' 
     280      ! Read Namelist namzgr : vertical coordinate' 
    270281      ! --------------------- 
    271282      REWIND ( numnam ) 
    272       READ   ( numnam, nam_zgr ) 
     283      READ   ( numnam, namzgr ) 
    273284 
    274285      ! Parameter control and print 
     
    279290         WRITE(numout,*) 'Namelist namzgr : vertical coordinate' 
    280291         WRITE(numout,*) '~~~~~~~' 
    281          WRITE(numout,*) '          Namelist nam_zgr : set vertical coordinate' 
     292         WRITE(numout,*) '          Namelist namzgr : set vertical coordinate' 
    282293         WRITE(numout,*) '             z-coordinate - full steps      ln_zco = ', ln_zco 
    283294         WRITE(numout,*) '             z-coordinate - partial steps   ln_zps = ', ln_zps 
     
    300311      ! Namelist namdom : space/time domain (bathymetry, mesh, timestep) 
    301312      REWIND( numnam ) 
    302       READ  ( numnam, nam_dom ) 
     313      READ  ( numnam, namdom ) 
    303314 
    304315      IF(lwp) THEN 
     
    327338      ! Namelist cross land advection 
    328339      REWIND( numnam ) 
    329       READ  ( numnam, nam_cla ) 
     340      READ  ( numnam, namcla ) 
    330341      IF(lwp) THEN 
    331342         WRITE(numout,*) 
Note: See TracChangeset for help on using the changeset viewer.