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 8993 for branches/2017/dev_METO_MERCATOR_2017/NEMOGCM/NEMO/NST_SRC/agrif_opa_sponge.F90 – NEMO

Ignore:
Timestamp:
2017-12-12T16:42:29+01:00 (7 years ago)
Author:
timgraham
Message:

Merged Mercator branch in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_METO_MERCATOR_2017/NEMOGCM/NEMO/NST_SRC/agrif_opa_sponge.F90

    r7646 r8993  
    3838      ! 
    3939#if defined SPONGE 
    40       timecoeff = REAL(Agrif_NbStepint(),wp)/Agrif_rhot() 
     40!!      timecoeff = REAL(Agrif_NbStepint(),wp)/Agrif_rhot() 
     41!! Assume persistence: 
     42      timecoeff = REAL(Agrif_rhot()-1,wp)/REAL(Agrif_rhot()) 
    4143 
    4244      CALL Agrif_Sponge 
     
    6163 
    6264#if defined SPONGE 
    63       timecoeff = REAL(Agrif_NbStepint(),wp)/Agrif_rhot() 
     65!!      timecoeff = REAL(Agrif_NbStepint(),wp)/Agrif_rhot() 
     66!! Assume persistence: 
     67      timecoeff = REAL(Agrif_rhot()-1,wp)/REAL(Agrif_rhot()) 
    6468 
    6569      Agrif_SpecialValue=0. 
     
    207211      ! 
    208212      IF( before ) THEN 
    209          tabres(i1:i2,j1:j2,k1:k2,n1:n2) = tsn(i1:i2,j1:j2,k1:k2,n1:n2) 
     213         tabres(i1:i2,j1:j2,k1:k2,n1:n2) = tsb(i1:i2,j1:j2,k1:k2,n1:n2) 
    210214      ELSE    
    211215         ! 
     
    276280      ! 
    277281      IF( before ) THEN 
    278          tabres = un(i1:i2,j1:j2,:) 
     282         tabres = ub(i1:i2,j1:j2,:) 
    279283      ELSE 
    280284         ubdiff(i1:i2,j1:j2,:) = (ub(i1:i2,j1:j2,:) - tabres(:,:,:))*umask(i1:i2,j1:j2,:) 
     
    373377 
    374378      IF( before ) THEN  
    375          tabres = vn(i1:i2,j1:j2,:) 
     379         tabres = vb(i1:i2,j1:j2,:) 
    376380      ELSE 
    377381         ! 
Note: See TracChangeset for help on using the changeset viewer.