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 9161 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2017-12-22T11:31:53+01:00 (6 years ago)
Author:
davestorkey
Message:

Reformulation of closea module.
See ticket #2000
https://forge.ipsl.jussieu.fr/nemo/wiki/2017WP/ROBUST-14_Dave_Storkey-Closed_Seas_rewrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90

    r9124 r9161  
    3030   USE trc_oce        ! shared ocean & passive tracers variab 
    3131   USE phycst         ! physical constants 
    32    USE usrdef_closea  ! closed seas 
     32   USE closea         ! closed seas 
    3333   USE domhgr         ! domain: set the horizontal mesh 
    3434   USE domzgr         ! domain: set the vertical mesh 
     
    118118      CALL dom_glo                     ! global domain versus local domain 
    119119      CALL dom_nam                     ! read namelist ( namrun, namdom ) 
    120       CALL dom_clo( cn_cfg, nn_cfg )   ! Closed seas and lake 
    121120      CALL dom_hgr                     ! Horizontal mesh 
    122121      CALL dom_zgr( ik_top, ik_bot )   ! Vertical mesh and bathymetry 
    123       IF( nn_closea == 0 )   CALL clo_bat( ik_top, ik_bot )    !==  remove closed seas or lakes  ==! 
    124122      CALL dom_msk( ik_top, ik_bot )   ! Masks 
     123      IF( ln_closea ) CALL dom_clo     ! ln_closea=T : closed seas included in the simulation 
     124                                       ! Read in masks to define closed seas and lakes  
    125125      ! 
    126126      DO jj = 1, jpj                   ! depth of the iceshelves 
     
    274274         &             nn_stock, nn_write , ln_mskland  , ln_clobber   , nn_chunksz, nn_euler  ,     & 
    275275         &             ln_cfmeta, ln_iscpl 
    276       NAMELIST/namdom/ ln_linssh, nn_closea, nn_msh, rn_isfhmin, rn_rdt, rn_atfp, ln_crs 
     276      NAMELIST/namdom/ ln_linssh, nn_msh, rn_isfhmin, rn_rdt, rn_atfp, ln_crs 
    277277#if defined key_netcdf4 
    278278      NAMELIST/namnc4/ nn_nchunks_i, nn_nchunks_j, nn_nchunks_k, ln_nc4zip 
     
    383383         WRITE(numout,*) '   Namelist namdom : space & time domain' 
    384384         WRITE(numout,*) '      linear free surface (=T)              ln_linssh  = ', ln_linssh 
    385          WRITE(numout,*) '      suppression of closed seas (=0)       nn_closea  = ', nn_closea 
    386385         WRITE(numout,*) '      create mesh/mask file(s)              nn_msh     = ', nn_msh 
    387386         WRITE(numout,*) '           = 0   no file created           ' 
Note: See TracChangeset for help on using the changeset viewer.