File indexing completed on 2018-03-02 18:42:10 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
6780674bfd Jean*0001 #include "MOM_COMMON_OPTIONS.h"
0002
0003
0004
0005
0006
8ecb2a8ef1 Jean*0007 SUBROUTINE MOM_W_CORIOLIS_NH(
6780674bfd Jean*0008 I bi,bj,k,
0009 I uFld, vFld,
0010 U wCoriolisTerm,
8ecb2a8ef1 Jean*0011 I myThid )
6780674bfd Jean*0012
0013
0014
0015
3daafce20b Jean*0016
6780674bfd Jean*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
0031
0032 INTEGER bi,bj,k
0033 _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0034 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0035 INTEGER myThid
0036
0037
0038
0039 _RL wCoriolisTerm(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0040
0041 #ifdef ALLOW_NONHYDROSTATIC
0042
0043
0044 INTEGER i,j
0045
0046
0047
0048
0049 IF ( k.GT.1 .AND. k.LE.Nr ) THEN
0050 DO j=1-Oly,sNy+Oly-1
0051 DO i=1-Olx,sNx+Olx-1
8ecb2a8ef1 Jean*0052 wCoriolisTerm(i,j) =
6780674bfd Jean*0053 & -gravitySign*fCoriCos(i,j,bi,bj)*
0054 & ( angleCosC(i,j,bi,bj)*(
0055 & (uFld(i,j,k-1,bi,bj)+uFld(i+1,j,k-1,bi,bj))
0056 & + (uFld(i,j, k ,bi,bj)+uFld(i+1,j, k ,bi,bj))
0057 & )*0.25 _d 0
0058 & -angleSinC(i,j,bi,bj)*(
0059 & (vFld(i,j,k-1,bi,bj)+vFld(i,j+1,k-1,bi,bj))
0060 & + (vFld(i,j, k ,bi,bj)+vFld(i,j+1, k ,bi,bj))
0061 & )*0.25 _d 0
8ecb2a8ef1 Jean*0062 & )*wUnit2rVel(k)
6780674bfd Jean*0063 ENDDO
0064 ENDDO
0065 ELSE
0066 DO j=1-Oly,sNy+Oly-1
0067 DO i=1-Olx,sNx+Olx-1
0068 wCoriolisTerm(i,j) = 0. _d 0
0069 ENDDO
0070 ENDDO
0071 ENDIF
0072
0073 #endif /* ALLOW_NONHYDROSTATIC */
0074
0075 RETURN
0076 END