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

Ignore:
Timestamp:
2018-08-23T14:34:13+02:00 (6 years ago)
Author:
csanchez
Message:

Added changes from Bijoy and Enda's for sponge layer, no tidal harm, and rimwidth=1

File:
1 edited

Legend:

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

    r8790 r10064  
    9090   LOGICAL                    ::   ln_mask_file             !: =T read bdymask from file 
    9191   LOGICAL                    ::   ln_vol                   !: =T volume correction              
     92   LOGICAL, DIMENSION(jp_bdy) ::   ln_sponge                !: =T use sponge layer  CEOD 
    9293   ! 
    9394   INTEGER                    ::   nb_bdy                   !: number of open boundary sets 
    9495   INTEGER, DIMENSION(jp_bdy) ::   nn_rimwidth              !: boundary rim width for Flow Relaxation Scheme 
    9596   INTEGER                    ::   nn_volctl                !: = 0 the total volume will have the variability of the surface Flux E-P  
     97   REAL(wp)                   ::   rn_sponge                !: multiplier of diffusion for sponge layer  CEOD 
    9698   !                                                        !  = 1 the volume will be constant during all the integration. 
    9799   CHARACTER(len=20), DIMENSION(jp_bdy) ::   cn_dyn2d       ! Choice of boundary condition for barotropic variables (U,V,SSH) 
     
    130132   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:), TARGET ::   bdyumask   !: Mask defining computational domain at U-points 
    131133   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:), TARGET ::   bdyvmask   !: Mask defining computational domain at V-points 
     134   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:), TARGET ::   sponge_factor !:Multiplier for diffusion for sponge layer CEOD 
    132135 
    133136   REAL(wp)                                    ::   bdysurftot !: Lateral surface of unstructured open boundary 
     
    160163      ! 
    161164      ALLOCATE( bdytmask(jpi,jpj) , bdyumask(jpi,jpj), bdyvmask(jpi,jpj),     &   
    162          &      STAT=bdy_oce_alloc ) 
     165         &      sponge_factor(jpi,jpj), STAT=bdy_oce_alloc )   !CEOD 
    163166      ! 
    164167      ! Initialize masks  
Note: See TracChangeset for help on using the changeset viewer.