File indexing completed on 2018-03-02 18:42:09 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
1a741329d2 Jean*0001 #include "MOM_COMMON_OPTIONS.h"
0002
0003
0004
0005
0006
0007 SUBROUTINE MOM_V_CORIOLIS_NH(
0008 I bi,bj,k,wFld,
0009 O vCoriolisTerm,
0010 I myThid )
0011
0012
0013
0014
3daafce20b Jean*0015
1a741329d2 Jean*0016
0017
0018
0019
0020 IMPLICIT NONE
0021 #include "SIZE.h"
0022 #include "EEPARAMS.h"
0023 #include "PARAMS.h"
0024 #include "GRID.h"
0025
0026
0027
0028
0029
0030
8ecb2a8ef1 Jean*0031 INTEGER bi,bj,k
1a741329d2 Jean*0032 _RL wFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0033 INTEGER myThid
0034
0035
0036
0037 _RL vCoriolisTerm(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0038
0039
0040
0041 INTEGER i,j,kp1
0042 _RL wMsk
0043
0044
0045
0046 kp1=min(k+1,Nr)
0047 wMsk=1.
0048 IF (k.EQ.Nr) wMsk=0.
0049
0050
0051 DO j=2-Oly,sNy+Oly
0052 DO i=1-Olx,sNx+Olx
0053 vCoriolisTerm(i,j) =
0054 & -0.5*( fCoriCos( i ,j,bi,bj)*angleSinC(i, j ,bi,bj)
8ecb2a8ef1 Jean*0055 & *0.5*( wFld( i ,j, k ,bi,bj)*rVel2wUnit( k )
0056 & +wFld( i ,j,kp1,bi,bj)*rVel2wUnit(kp1)*wMsk )
1a741329d2 Jean*0057 & + fCoriCos(i,j-1,bi,bj)*angleSinC(i,j-1,bi,bj)
8ecb2a8ef1 Jean*0058 & *0.5*( wFld(i,j-1, k ,bi,bj)*rVel2wUnit( k )
0059 & +wFld(i,j-1,kp1,bi,bj)*rVel2wUnit(kp1)*wMsk )
0060 & )*gravitySign
1a741329d2 Jean*0061 ENDDO
0062 ENDDO
0063
0064 RETURN
0065 END