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 6445 – NEMO

Changeset 6445


Ignore:
Timestamp:
2016-04-07T17:37:50+02:00 (8 years ago)
Author:
timgraham
Message:

Corrections to agrif_opa_interp missed when merging with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5803_UKMO_AGRIF_Vert_interp/NEMOGCM/NEMO/NST_SRC/agrif_opa_interp.F90

    r6425 r6445  
    3838   PUBLIC   Agrif_Init_InterpScales 
    3939! VERTICAL REFINEMENT END 
    40    PUBLIC   interpun, interpvn, interpun2d, interpvn2d  
     40   PUBLIC   interpun, interpvn 
    4141   PUBLIC   interptsn,  interpsshn 
    4242   PUBLIC   interpunb, interpvnb, interpub2b, interpvb2b 
     
    10231023 
    10241024 
    1025    SUBROUTINE interpun2d(ptab,i1,i2,j1,j2,before) 
    1026       !!--------------------------------------------- 
    1027       !!   *** ROUTINE interpun *** 
    1028       !!---------------------------------------------     
    1029       ! 
    1030       INTEGER, INTENT(in) :: i1,i2,j1,j2 
    1031       REAL(wp), DIMENSION(i1:i2,j1:j2), INTENT(inout) :: ptab 
    1032       LOGICAL, INTENT(in) :: before 
    1033       ! 
    1034       INTEGER :: ji,jj 
    1035       REAL(wp) :: ztref 
    1036       REAL(wp) :: zrhoy  
    1037       !!---------------------------------------------     
    1038       ! 
    1039       ztref = 1. 
    1040  
    1041       IF (before) THEN  
    1042          DO jj=j1,j2 
    1043             DO ji=i1,MIN(i2,nlci-1) 
    1044                ptab(ji,jj) = e2u(ji,jj) * ((gcx(ji+1,jj) - gcx(ji,jj))/e1u(ji,jj))  
    1045             END DO 
    1046          END DO 
    1047       ELSE 
    1048          zrhoy = Agrif_Rhoy() 
    1049          DO jj=j1,j2 
    1050             laplacu(i1:i2,jj) = ztref * (ptab(i1:i2,jj)/(zrhoy*e2u(i1:i2,jj))) !*umask(i1:i2,jj,1) 
    1051          END DO 
    1052       ENDIF 
    1053       !  
    1054    END SUBROUTINE interpun2d 
    1055  
    10561025 
    10571026   SUBROUTINE interpvn(ptab,i1,i2,j1,j2,k1,k2,m1,m2,before,nb,ndir) 
     
    10591028      !!   *** ROUTINE interpvn *** 
    10601029      !!---------------------------------------------------------------------- 
    1061       INTEGER                               , INTENT(in   ) ::   i1, i2, j1, j2, k1, k2 
    1062       REAL(wp), DIMENSION(i1:i2,j1:j2,k1:k2), INTENT(inout) ::   ptab 
    1063       LOGICAL                               , INTENT(in   ) ::   before 
    10641030      ! 
    10651031      INTEGER, INTENT(in) :: i1,i2,j1,j2,k1,k2,m1,m2 
Note: See TracChangeset for help on using the changeset viewer.