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

Ignore:
Timestamp:
2006-09-12T13:03:53+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_064:CE:re-organization of coordinate definition and scale factors

File:
1 edited

Legend:

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

    r343 r497  
    2929   PUBLIC dom_init       ! called by opa.F90 
    3030 
     31   !! * Module variables 
     32      REAL(wp) ::          & !!: Namelist nam_zgr_sco 
     33      sbot_min =  300.  ,  &  !: minimum depth of s-bottom surface (>0) (m) 
     34      sbot_max = 5250.  ,  &  !: maximum depth of s-bottom surface (= ocean depth) (>0) (m) 
     35      theta    =    6.0 ,  &  !: surface control parameter (0<=theta<=20) 
     36      thetb    =    0.75,  &  !: bottom control parameter  (0<=thetb<= 1) 
     37      r_max    =    0.15      !: maximum cut-off r-value allowed (0<r_max<1) 
     38 
     39 
    3140   !! * Substitutions 
    3241#  include "domzgr_substitute.h90" 
     
    98107      !! * Modules used 
    99108      USE ioipsl 
    100       NAMELIST/namrun/ no    , cexper   , ln_rstart , nrstdt , nit000,          & 
     109      INTEGER ::   ioptio = 0      ! temporary integer 
     110 
     111      NAMELIST/nam_run/ no    , cexper   , ln_rstart , nrstdt , nit000,          & 
    101112         &             nitend, ndate0   , nleapy   , ninist , nstock,           & 
    102113         &             nprint, nwrite   , nrunoff  , ln_ctl , nictls, nictle,   & 
    103114         &             njctls, njctle   , nbench   , isplt  , jsplt 
    104115 
    105       NAMELIST/namdom/ e3zps_min, e3zps_rat, nmsh  ,   & 
     116      NAMELIST/nam_zgr/ ln_zco, ln_zps, ln_sco 
     117 
     118      NAMELIST/nam_dom/ e3zps_min, e3zps_rat, nmsh  ,   & 
    106119         &             nacc  , atfp     , rdt      , rdtmin , rdtmax,   & 
    107120         &             rdth  
    108121 
    109       NAMELIST/namcla/ n_cla 
     122      NAMELIST/nam_cla/ n_cla 
    110123      !!---------------------------------------------------------------------- 
    111124 
     
    118131      ! Namelist namrun : parameters of the run 
    119132      REWIND( numnam ) 
    120       READ  ( numnam, namrun ) 
     133      READ  ( numnam, nam_run ) 
    121134 
    122135      IF(lwp) THEN 
     
    256269      ENDIF 
    257270 
     271      ! Read Namelist nam_zgr : vertical coordinate' 
     272      ! --------------------- 
     273      REWIND ( numnam ) 
     274      READ   ( numnam, nam_zgr ) 
     275 
     276      ! Parameter control and print 
     277      ! --------------------------- 
     278      ! Control print 
     279      IF(lwp) THEN 
     280         WRITE(numout,*) 
     281         WRITE(numout,*) 'Namelist namzgr : vertical coordinate' 
     282         WRITE(numout,*) '~~~~~~~' 
     283         WRITE(numout,*) '          Namelist nam_zgr : set vertical coordinate' 
     284         WRITE(numout,*) '             z-coordinate - full steps      ln_zco = ', ln_zco 
     285         WRITE(numout,*) '             z-coordinate - partial steps   ln_zps = ', ln_zps 
     286         WRITE(numout,*) '             s- or hybrid z-s-coordinate    ln_sco = ', ln_sco 
     287      ENDIF 
     288 
     289      ! Check Vertical coordinate options 
     290      ioptio = 0 
     291      IF( ln_zco ) ioptio = ioptio + 1 
     292      IF( ln_zps ) ioptio = ioptio + 1 
     293      IF( ln_sco ) ioptio = ioptio + 1 
     294      IF ( ioptio /= 1 ) CALL ctl_stop( ' none or several vertical coordinate options used' ) 
     295 
     296      IF( ln_zco ) THEN 
     297          IF(lwp) WRITE(numout,*) '          z-coordinate with reduced incore memory requirement' 
     298          IF( ln_zps .OR. ln_sco ) CALL ctl_stop( ' reduced memory with zps or sco option is impossible' ) 
     299      ENDIF 
     300 
     301 
    258302      ! Namelist namdom : space/time domain (bathymetry, mesh, timestep) 
    259303      REWIND( numnam ) 
    260       READ  ( numnam, namdom ) 
     304      READ  ( numnam, nam_dom ) 
    261305 
    262306      IF(lwp) THEN 
     
    285329      ! Namelist cross land advection 
    286330      REWIND( numnam ) 
    287       READ  ( numnam, namcla ) 
     331      READ  ( numnam, nam_cla ) 
    288332      IF(lwp) THEN 
    289333         WRITE(numout,*) 
Note: See TracChangeset for help on using the changeset viewer.