File indexing completed on 2018-03-02 18:42:05 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
9c05b3873e Alis*0001 #include "MOM_COMMON_OPTIONS.h"
07cc642809 Alis*0002
cf8506b548 Alis*0003
0004
0005
0006
220a9e88b5 Jean*0007 SUBROUTINE MOM_CALC_STRAIN(
07cc642809 Alis*0008 I bi,bj,k,
0009 I uFld, vFld, hFacZ,
0010 O strain,
220a9e88b5 Jean*0011 I myThid )
07cc642809 Alis*0012
cf8506b548 Alis*0013
0014
0015
0016
e6cc0c97e0 Alis*0017
cf8506b548 Alis*0018
0019
0020
0021
0022 IMPLICIT NONE
07cc642809 Alis*0023 #include "SIZE.h"
0024 #include "EEPARAMS.h"
0025 #include "PARAMS.h"
0026 #include "GRID.h"
cf8506b548 Alis*0027
0028
0029
0030
0031
0032
0033
0034
07cc642809 Alis*0035 INTEGER bi,bj,k
0036 _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0037 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0038 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0039 INTEGER myThid
0040
cf8506b548 Alis*0041
0042
0043 _RL strain(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0044
0045
0046
07cc642809 Alis*0047 INTEGER i,j
cf8506b548 Alis*0048
07cc642809 Alis*0049
220a9e88b5 Jean*0050 DO j=2-OLy,sNy+OLy
0051 DO i=2-OLx,sNx+OLx
07cc642809 Alis*0052
cf8506b548 Alis*0053
220a9e88b5 Jean*0054 strain(i,j)=
0055 & ( dyC( i , j ,bi,bj)*vFld( i , j )
0056 & -dyC(i-1, j ,bi,bj)*vFld(i-1, j )
0057 & +dxC( i , j ,bi,bj)*uFld( i , j )
0058 & -dxC( i ,j-1,bi,bj)*uFld( i ,j-1)
0059 & )*recip_rAz(i,j,bi,bj)*recip_deepFacC(k)
0060
0061
0062
0063
0064
0065
0066
07cc642809 Alis*0067
cf8506b548 Alis*0068
602b37a090 Jean*0069
0070
220a9e88b5 Jean*0071
602b37a090 Jean*0072
07cc642809 Alis*0073
0074 ENDDO
0075 ENDDO
220a9e88b5 Jean*0076
07cc642809 Alis*0077
0078 IF (useCubedSphereExchange) THEN
7c7b0b4a46 Alis*0079
07cc642809 Alis*0080 ENDIF
0081
0082 RETURN
0083 END