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
aba3ddc7b7 Alis*0003
0004
0005
0006
e9de1d7682 Jean*0007 SUBROUTINE GAD_C2_ADV_R(
0008 I bi, bj, k,
31566b6684 Alis*0009 I rTrans,
0010 I tracer,
0011 O wT,
0012 I myThid )
0013
aba3ddc7b7 Alis*0014
527a84022c Alis*0015
0016
aba3ddc7b7 Alis*0017
527a84022c Alis*0018
aba3ddc7b7 Alis*0019
0020
0021
0022 IMPLICIT NONE
31566b6684 Alis*0023 #include "SIZE.h"
0024 #include "GRID.h"
0025 #include "EEPARAMS.h"
0026 #include "PARAMS.h"
0027
aba3ddc7b7 Alis*0028
0029
0030
0031
0032
0033
31566b6684 Alis*0034 INTEGER bi,bj,k
0035 _RL rTrans(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
e9de1d7682 Jean*0036 _RL tracer(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
31566b6684 Alis*0037 INTEGER myThid
0038
aba3ddc7b7 Alis*0039
0040
0041 _RL wT (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0042
0043
0044
0045
31566b6684 Alis*0046 INTEGER i,j,km1
aba3ddc7b7 Alis*0047
31566b6684 Alis*0048
0049 km1=max(1,k-1)
0050
ab2f187c7d Jean*0051 IF ( k.EQ.1 .OR. k.GT.Nr) THEN
e9de1d7682 Jean*0052 DO j=1-OLy,sNy+OLy
0053 DO i=1-OLx,sNx+OLx
31566b6684 Alis*0054 wT(i,j) = 0.
0055 ENDDO
0056 ENDDO
0057 ELSE
e9de1d7682 Jean*0058 DO j=1-OLy,sNy+OLy
0059 DO i=1-OLx,sNx+OLx
0060 wT(i,j) = maskC(i,j,km1,bi,bj)*
ab2f187c7d Jean*0061 & rTrans(i,j)*
e9de1d7682 Jean*0062 & (tracer(i,j,k)+tracer(i,j,km1))*0.5 _d 0
31566b6684 Alis*0063 ENDDO
0064 ENDDO
0065 ENDIF
0066
0067 RETURN
0068 END