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 9019 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/NST_SRC/agrif_top_sponge.F90 – NEMO

Ignore:
Timestamp:
2017-12-13T15:58:53+01:00 (6 years ago)
Author:
timgraham
Message:

Merge of dev_CNRS_2017 into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/NST_SRC/agrif_top_sponge.F90

    r6140 r9019  
    44   !!====================================================================== 
    55   !!                ***  MODULE agrif_top_sponge  *** 
    6    !! AGRIF :   define in memory AGRIF variables for sea-ice 
     6   !! AGRIF :   sponge layer pakage for passive tracers (TOP) 
    77   !!====================================================================== 
    88   !! History :  2.0  ! 2006-08  (R. Benshila, L. Debreu)  Original code 
    99   !!---------------------------------------------------------------------- 
    10  
     10#if defined key_agrif && defined key_top 
    1111   !!---------------------------------------------------------------------- 
    1212   !!   Agrif_Sponge_trc :  
    1313   !!   interptrn_sponge :   
    1414   !!---------------------------------------------------------------------- 
    15 #if defined key_agrif && defined key_top 
    1615   USE par_oce 
    1716   USE par_trc 
     
    2423   USE in_out_manager 
    2524   USE lib_mpp 
    26    USE wrk_nemo   
    2725 
    2826   IMPLICIT NONE 
     
    3230 
    3331   !!---------------------------------------------------------------------- 
    34    !! NEMO/NST 3.7 , NEMO Consortium (2015) 
     32   !! NEMO/NST 4.0 , NEMO Consortium (2017) 
    3533   !! $Id$ 
    3634   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     
    4240      !!                   *** ROUTINE Agrif_Sponge_Trc *** 
    4341      !!---------------------------------------------------------------------- 
    44       REAL(wp) ::   timecoeff 
     42      REAL(wp) ::   zcoef   ! local scalar 
    4543      !!---------------------------------------------------------------------- 
    4644      ! 
    4745#if defined SPONGE_TOP 
    48       timecoeff = REAL( Agrif_NbStepint(), wp ) / Agrif_rhot() 
     46      zcoef = REAL( Agrif_NbStepint(), wp ) / Agrif_rhot() 
    4947      CALL Agrif_sponge 
    5048      Agrif_SpecialValue    = 0._wp 
    5149      Agrif_UseSpecialValue = .TRUE. 
    5250      tabspongedone_trn     = .FALSE. 
    53       CALL Agrif_Bc_Variable( trn_sponge_id, calledweight=timecoeff, procname=interptrn_sponge ) 
     51      CALL Agrif_Bc_Variable( trn_sponge_id, calledweight=zcoef, procname=interptrn_sponge ) 
    5452      Agrif_UseSpecialValue = .FALSE. 
    5553#endif 
     
    107105 
    108106#else 
    109  
     107   !!---------------------------------------------------------------------- 
     108   !!   Empty module                                           no TOP AGRIF 
     109   !!---------------------------------------------------------------------- 
    110110CONTAINS 
    111111   SUBROUTINE agrif_top_sponge_empty 
Note: See TracChangeset for help on using the changeset viewer.