File indexing completed on 2018-03-02 18:40:55 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
31566b6684 Alis*0001 #include "GAD_OPTIONS.h"
0002
527a84022c Alis*0003
0004
0005
0006
f614d87886 Jean*0007 SUBROUTINE GAD_C4_ADV_X(
31566b6684 Alis*0008 I bi,bj,k,
f614d87886 Jean*0009 I uTrans, maskLocW,
31566b6684 Alis*0010 I tracer,
0011 O uT,
0012 I myThid )
0013
527a84022c Alis*0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 IMPLICIT NONE
31566b6684 Alis*0026 #include "SIZE.h"
0027 #include "GRID.h"
0028 #include "GAD.h"
0029
527a84022c Alis*0030
f614d87886 Jean*0031
0032
0033
0034
0035
0036
31566b6684 Alis*0037 INTEGER bi,bj,k
f614d87886 Jean*0038 _RL uTrans (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0039 _RS maskLocW(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0040 _RL tracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
31566b6684 Alis*0041 INTEGER myThid
0042
527a84022c Alis*0043
f614d87886 Jean*0044
0045 _RL uT (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
527a84022c Alis*0046
0047
0048
0049
0050
31566b6684 Alis*0051 INTEGER i,j
0052 _RL Rjm,Rj,Rjp,Rjjm,Rjjp
527a84022c Alis*0053
31566b6684 Alis*0054
0055 DO j=1-Oly,sNy+Oly
0056 uT(1-Olx,j)=0.
5bcec3d115 Jean*0057 uT(2-Olx,j)=0.
0058 uT(sNx+Olx,j)=0.
360ad14abb Mart*0059 ENDDO
0060 DO j=1-Oly,sNy+Oly
5bcec3d115 Jean*0061 DO i=1-Olx+2,sNx+Olx-1
f614d87886 Jean*0062 Rjp = (tracer(i+1,j)-tracer( i ,j))*maskLocW(i+1,j)
0063 Rj = (tracer( i ,j)-tracer(i-1,j))*maskLocW( i ,j)
0064 Rjm = (tracer(i-1,j)-tracer(i-2,j))*maskLocW(i-1,j)
5d63e10665 Jean*0065 Rjjp=(Rjp-Rj)
0066 Rjjm=(Rj-Rjm)
8a37624a25 Jean*0067 uT(i,j) =
31566b6684 Alis*0068 & uTrans(i,j)*(
0069 & Tracer(i,j)+Tracer(i-1,j)-oneSixth*( Rjjp+Rjjm )
0070 & )*0.5 _d 0
8a37624a25 Jean*0071 & +ABS( uTrans(i,j) )*0.5 _d 0*oneSixth*( Rjjp-Rjjm )
0072 & *( 1. _d 0 - maskW(i-1,j,k,bi,bj)*maskW(i+1,j,k,bi,bj) )
f614d87886 Jean*0073
31566b6684 Alis*0074 ENDDO
0075 ENDDO
0076
0077 RETURN
0078 END