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