File indexing completed on 2018-03-02 18:44:35 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
30e883b651 Jean*0001 #include "CPP_EEOPTIONS.h"
37c5e7e634 Jean*0002
0003
0004 SUBROUTINE TIMEAVE_CUMUL_2VFC(
0005 O fldtave,
873fffa31d Patr*0006 I fld1, fld2, fld3, Ksize, dir, deltaTloc,
37c5e7e634 Jean*0007 I bi, bj, myThid )
0008
0009
0010
0011
0012
0013
0014
0015
0016 IMPLICIT NONE
0017
0018
0019 #include "SIZE.h"
0020 #include "EEPARAMS.h"
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 INTEGER Ksize, dir
0031 _RL fld1(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Ksize,nSx,nSy)
0032 _RL fld2(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Ksize,nSx,nSy)
0033 _RS fld3(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Ksize,nSx,nSy)
0034 _RL fldtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Ksize,nSx,nSy)
873fffa31d Patr*0035 _RL deltaTloc
37c5e7e634 Jean*0036 INTEGER bi, bj, myThid
0037
0038
0039
0040
0041
0042 INTEGER i, j, k
0043
0044 IF ( dir.eq.0 ) THEN
0045
0046
0047
0048 DO k=1,Ksize
0049 DO j=1,sNy
0050 DO i=1,sNx
873fffa31d Patr*0051 fldtave(i,j,k,bi,bj) = fldtave(i,j,k,bi,bj) + deltaTloc*
37c5e7e634 Jean*0052 & fld1(i,j,k,bi,bj)*fld2(i,j,k,bi,bj)*fld3(i,j,k,bi,bj)
0053 ENDDO
0054 ENDDO
0055 ENDDO
0056
0057
0058
0059 ELSEIF ( dir.eq.1 ) THEN
0060
0061
0062
0063 DO k=1,Ksize
0064 DO j=1,sNy
0065 DO i=1,sNx
873fffa31d Patr*0066 fldtave(i,j,k,bi,bj) = fldtave(i,j,k,bi,bj) + deltaTloc*
37c5e7e634 Jean*0067 & 0.5*( fld1(i-1,j,k,bi,bj) + fld1(i,j,k,bi,bj) )
0068 & *fld2(i,j,k,bi,bj)*fld3(i,j,k,bi,bj)
0069 ENDDO
0070 ENDDO
0071 ENDDO
0072
0073
0074
0075 ELSEIF ( dir.eq.2 ) THEN
0076
0077
0078
0079 DO k=1,Ksize
0080 DO j=1,sNy
0081 DO i=1,sNx
873fffa31d Patr*0082 fldtave(i,j,k,bi,bj) = fldtave(i,j,k,bi,bj) + deltaTloc*
37c5e7e634 Jean*0083 & 0.5*( fld1(i,j-1,k,bi,bj) + fld1(i,j,k,bi,bj) )
0084 & *fld2(i,j,k,bi,bj)*fld3(i,j,k,bi,bj)
0085 ENDDO
0086 ENDDO
0087 ENDDO
0088
0089
0090
0091 ENDIF
0092
0093 RETURN
0094 END