3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
|
CBOP |
7 |
|
C !ROUTINE: MOM_V_METRIC_SPHERE |
8 |
|
|
9 |
|
C !INTERFACE: ========================================================== |
10 |
SUBROUTINE MOM_V_METRIC_SPHERE( |
SUBROUTINE MOM_V_METRIC_SPHERE( |
11 |
I bi,bj,k, |
I bi,bj,k, |
12 |
I uFld, |
I uFld, |
13 |
O vMetricTerms, |
O vMetricTerms, |
14 |
I myThid) |
I myThid) |
|
IMPLICIT NONE |
|
|
C |
|
|
C Calculate spherical metric terms in V equation |
|
|
C - is obviously not vector invariant ... |
|
|
C |
|
15 |
|
|
16 |
C == Global variables == |
C !DESCRIPTION: |
17 |
|
C Calculates the meridional metric term due to sphericity: |
18 |
|
C \begin{equation} |
19 |
|
C \frac{1}{a} \overline{u}^{ij} \overline{u}^{ij} \tan{\phi} |
20 |
|
C \end{equation} |
21 |
|
|
22 |
|
C !USES: ===============================================================` |
23 |
|
IMPLICIT NONE |
24 |
#include "SIZE.h" |
#include "SIZE.h" |
25 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
26 |
#include "PARAMS.h" |
#include "PARAMS.h" |
27 |
#include "GRID.h" |
#include "GRID.h" |
28 |
|
|
29 |
C == Routine arguments == |
C !INPUT PARAMETERS: =================================================== |
30 |
|
C bi,bj :: tile indices |
31 |
|
C k :: vertical level |
32 |
|
C uFld :: zonal flow |
33 |
|
C myThid :: thread number |
34 |
INTEGER bi,bj,k |
INTEGER bi,bj,k |
35 |
_RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
|
_RL vMetricTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
|
36 |
INTEGER myThid |
INTEGER myThid |
37 |
|
|
38 |
C == Local variables == |
C !OUTPUT PARAMETERS: ================================================== |
39 |
INTEGER I,J |
C vMetricTerms :: metric term |
40 |
|
_RL vMetricTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
41 |
|
|
42 |
|
C !LOCAL VARIABLES: ==================================================== |
43 |
|
C i,j :: loop indices |
44 |
|
INTEGER i,j |
45 |
|
CEOP |
46 |
|
|
47 |
DO j=1-Olx+1,sNy+Oly |
DO j=1-Olx+1,sNy+Oly |
48 |
DO i=1-Olx,sNx+Olx-1 |
DO i=1-Olx,sNx+Olx-1 |