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 5878 for branches/UKMO/dev_r5518_bdy_sponge_temp/NEMOGCM/NEMO/OPA_SRC/BDY/bdy_oce.F90 – NEMO

Ignore:
Timestamp:
2015-11-11T19:11:01+01:00 (8 years ago)
Author:
deazer
Message:

Adds simple ramp of diffusion coefficient in BDY rim using TANH weighting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_bdy_sponge_temp/NEMOGCM/NEMO/OPA_SRC/BDY/bdy_oce.F90

    r5876 r5878  
    8383   LOGICAL                    ::   ln_mask_file             !: =T read bdymask from file 
    8484   LOGICAL                    ::   ln_vol                   !: =T volume correction              
     85   LOGICAL, DIMENSION(jp_bdy) ::   ln_sponge                !: =T use sponge layer  
    8586   ! 
    8687   INTEGER                    ::   nb_bdy                   !: number of open boundary sets 
     
    8889   INTEGER                    ::   nn_volctl                !: = 0 the total volume will have the variability of the surface Flux E-P  
    8990   !                                                        !  = 1 the volume will be constant during all the integration. 
     91   REAL(wp)                   ::   rn_sponge                !: multiplier of diffusion for sponge layer 
    9092   CHARACTER(len=20), DIMENSION(jp_bdy) ::   cn_dyn2d       ! Choice of boundary condition for barotropic variables (U,V,SSH) 
    9193   INTEGER, DIMENSION(jp_bdy)           ::   nn_dyn2d_dta   !: = 0 use the initial state as bdy dta ;  
     
    118120   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:), TARGET ::   bdyumask   !: Mask defining computational domain at U-points 
    119121   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:), TARGET ::   bdyvmask   !: Mask defining computational domain at V-points 
     122   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:), TARGET ::   sponge_factor !: Multiplier for diffusion for sponge layer 
    120123 
    121124   REAL(wp)                                    ::   bdysurftot !: Lateral surface of unstructured open boundary 
    122  
    123125   !!---------------------------------------------------------------------- 
    124126   !! open boundary data variables 
     
    148150      ! 
    149151      ALLOCATE( bdytmask(jpi,jpj) , bdyumask(jpi,jpj), bdyvmask(jpi,jpj),     &   
    150          &      STAT=bdy_oce_alloc ) 
     152         &      sponge_factor(jpi,jpj), STAT=bdy_oce_alloc ) 
    151153      ! 
    152154      ! Initialize masks  
Note: See TracChangeset for help on using the changeset viewer.