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 7200 for branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/TOOLS/DOMAINcfg/src/domain.f90 – NEMO

Ignore:
Timestamp:
2016-11-06T17:31:33+01:00 (7 years ago)
Author:
gm
Message:

#1692 - branch SIMPLIF_2_usrdef: add depth_e3 module + management of ORCA family + domain_cfg filename (in&out) given in namelist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/TOOLS/DOMAINcfg/src/domain.f90

    r7189 r7200  
    379379      !!              ocean configuration. 
    380380      !! 
    381       !! ** output file :   domain_cfg.nc : domain size, characteristics, 
    382       !horizontal mesh, 
    383       !!                              Coriolis parameter, depth and vertical 
    384       !scale factors 
     381      !! ** output file :   domain_cfg.nc : domain size, characteristics,horizontal mesh, 
     382      !!                              Coriolis parameter, and vertical scale factors 
     383      !!                              NB: also contains ORCA family information (if cp_cfg = "ORCA") 
     384      !!                              and depths (ln_e3_dep=F)  
    385385      !!---------------------------------------------------------------------- 
    386386      INTEGER           ::   ji, jj, jk   ! dummy loop indices 
     
    402402      CALL iom_open( TRIM(clnam), inum, ldwrt = .TRUE., kiolib = jprstlib ) 
    403403       
     404      ! 
     405      !                             !==  ORCA family specificities  ==! 
     406      IF( cp_cfg == "ORCA" ) THEN 
     407         CALL iom_rstput( 0, 0, inum, 'ORCA'      , 1._wp            , ktype = jp_i4 ) 
     408         CALL iom_rstput( 0, 0, inum, 'ORCA_index', REAL( jp_cfg, wp), ktype = jp_i4 )          
     409      ENDIF 
    404410      !                             !==  global domain size  ==! 
    405411      ! 
     
    456462      CALL iom_rstput( 0, 0, inum, 'e3w_1d'  , e3w_1d  , ktype = jp_r8 ) 
    457463      ! 
    458       IF(.NOT.ln_e2_dep ) THEN                                             !  depth (t- & w-points) 
    459          CALL iom_rstput( 0, 0, inum, 'gdept_1d', gdept_1d, ktype = jp_r8 )   ! required only with   
    460          CALL iom_rstput( 0, 0, inum, 'gdepw_1d', gdepw_1d, ktype = jp_r8 )   ! the old e3. definition 
    461          CALL iom_rstput( 0, 0, inum, 'gdept_0' , gdept_0 , ktype = jp_r8 ) 
    462          CALL iom_rstput( 0, 0, inum, 'gdepw_0' , gdepw_0 , ktype = jp_r8 ) 
    463       ENDIF 
    464       ! 
    465464      CALL iom_rstput( 0, 0, inum, 'e3t_0'   , e3t_0   , ktype = jp_r8 )   !  vertical scale factors (e 
    466465      CALL iom_rstput( 0, 0, inum, 'e3u_0'   , e3u_0   , ktype = jp_r8 ) 
     
    470469      CALL iom_rstput( 0, 0, inum, 'e3uw_0'  , e3uw_0  , ktype = jp_r8 ) 
    471470      CALL iom_rstput( 0, 0, inum, 'e3vw_0'  , e3vw_0  , ktype = jp_r8 ) 
     471      ! 
     472      IF(.NOT.ln_e3_dep ) THEN                                             !  depth (t- & w-points) 
     473         CALL iom_rstput( 0, 0, inum, 'gdept_1d', gdept_1d, ktype = jp_r8 )   ! required only with   
     474         CALL iom_rstput( 0, 0, inum, 'gdepw_1d', gdepw_1d, ktype = jp_r8 )   ! the old e3. definition 
     475         CALL iom_rstput( 0, 0, inum, 'gdept_0' , gdept_0 , ktype = jp_r8 ) 
     476         CALL iom_rstput( 0, 0, inum, 'gdepw_0' , gdepw_0 , ktype = jp_r8 ) 
     477      ENDIF 
    472478      !                                          
    473479      !                             !==  ocean top and bottom level  ==! 
Note: See TracChangeset for help on using the changeset viewer.