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 11201 for NEMO/branches/2019/ENHANCE-03_domcfg/src/dommsk.F90 – NEMO

Ignore:
Timestamp:
2019-07-01T12:10:15+02:00 (5 years ago)
Author:
mathiot
Message:

ENHANCE-03_domcfg : add management of closed seas in domain cfg by flood filling and lat/lon seed instead of i/j box definition (ticket #2143)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/ENHANCE-03_domcfg/src/dommsk.F90

    r11129 r11201  
    2424   !!---------------------------------------------------------------------- 
    2525   USE dom_oce        ! ocean space and time domain 
     26   USE domwri         ! domain: write the meshmask file 
    2627   USE bdy_oce        ! open boundary 
    2728   ! 
     
    6061      !!      and ko_bot, the indices of the fist and last ocean t-levels which  
    6162      !!      are either defined in usrdef_zgr or read in zgr_read. 
    62       !!                The velocity masks (umask, vmask, wmask, wumask, wvmask)  
     63      !!                The velocity masks (umask, vmask)  
    6364      !!      are deduced from a product of the two neighboring tmask. 
    6465      !!                The vorticity mask (fmask) is deduced from tmask taking 
     
    7576      !!                due to cyclic or North Fold boundaries as well as MPP halos. 
    7677      !! 
    77       !! ** Action :   tmask, umask, vmask, wmask, wumask, wvmask : land/ocean mask  
     78      !! ** Action :   tmask, umask, vmask, wmask : land/ocean mask  
    7879      !!                         at t-, u-, v- w, wu-, and wv-points (=0. or 1.) 
    7980      !!               fmask   : land/ocean mask at f-point (=0., or =1., or  
     
    188189      !----------------------------------------- 
    189190      wmask (:,:,1) = tmask(:,:,1)     ! surface 
    190       wumask(:,:,1) = umask(:,:,1) 
    191       wvmask(:,:,1) = vmask(:,:,1) 
    192191      DO jk = 2, jpk                   ! interior values 
    193192         wmask (:,:,jk) = tmask(:,:,jk) * tmask(:,:,jk-1) 
    194          wumask(:,:,jk) = umask(:,:,jk) * umask(:,:,jk-1)    
    195          wvmask(:,:,jk) = vmask(:,:,jk) * vmask(:,:,jk-1) 
    196193      END DO 
    197194 
     
    202199      ssumask(:,:) = MAXVAL( umask(:,:,:), DIM=3 ) 
    203200      ssvmask(:,:) = MAXVAL( vmask(:,:,:), DIM=3 ) 
    204  
    205201 
    206202      ! Interior domain mask  (used for global sum) 
     
    289285      ENDIF 
    290286      ! 
     287      ! write out mesh mask 
     288      IF ( nn_msh > 0 ) CALL dom_wri 
     289      ! 
    291290   END SUBROUTINE dom_msk 
    292291    
Note: See TracChangeset for help on using the changeset viewer.