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_X(
4a20c1c4ff Jean*0008 I bi,bj,k,
f614d87886 Jean*0009 I uTrans, maskLocW,
4a20c1c4ff Jean*0010 I tracer,
0011 O uT,
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 uTrans (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0038 _RS maskLocW(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
f614d87886 Jean*0043
0044 _RL uT (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 j=1-Oly,sNy+Oly
0055 uT(1-Olx,j)=0.
0056 uT(2-Olx,j)=0.
0057 uT(sNx+Olx,j)=0.
360ad14abb Mart*0058 ENDDO
0059 DO j=1-Oly,sNy+Oly
4a20c1c4ff Jean*0060 DO i=1-Olx+2,sNx+Olx-1
f614d87886 Jean*0061 Rjp = (tracer(i+1,j)-tracer( i ,j))*maskLocW(i+1,j)
0062 Rj = (tracer( i ,j)-tracer(i-1,j))*maskLocW( i ,j)
0063 Rjm = (tracer(i-1,j)-tracer(i-2,j))*maskLocW(i-1,j)
5cf0b3ba18 Jean*0064 Rjjp=Rjp-Rj
0065 Rjjm=Rj-Rjm
f614d87886 Jean*0066 uT(i,j) =
4a20c1c4ff Jean*0067 & uTrans(i,j)*(
0068 & Tracer(i,j)+Tracer(i-1,j)-oneSixth*( Rjjp+Rjjm )
0069 & )*0.5 _d 0
0070 & +ABS( uTrans(i,j) )*0.5 _d 0*oneSixth*( Rjjp-Rjjm )
0071 ENDDO
0072 ENDDO
0073
0074 RETURN
0075 END