3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterFace |
CBOP |
7 |
|
C !ROUTINE: CALC_COMMON_FACTORS |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE CALC_COMMON_FACTORS( |
SUBROUTINE CALC_COMMON_FACTORS( |
10 |
I bi,bj,iMin,iMax,jMin,jMax,k, |
I bi,bj,iMin,iMax,jMin,jMax,k, |
11 |
O xA,yA,uTrans,vTrans,rTrans,maskUp, |
O xA,yA,uTrans,vTrans,rTrans,maskUp, |
12 |
I myThid) |
I myThid) |
13 |
|
C !DESCRIPTION: \bv |
14 |
|
C *==========================================================* |
15 |
|
C | SUBROUTINE CALC_COMMON_FACTORS |
16 |
|
C | o Calculate common data (such as volume flux) for use |
17 |
|
C | by "Right hand side" subroutines. |
18 |
|
C *==========================================================* |
19 |
|
C | Here, we calculate terms or spatially varying factors |
20 |
|
C | that are used at various points in the "RHS" subroutines. |
21 |
|
C | This reduces the amount of total work, total memory |
22 |
|
C | and therefore execution time and is generally a good |
23 |
|
C | idea. |
24 |
|
C *==========================================================* |
25 |
|
C \ev |
26 |
|
|
27 |
C /==========================================================\ |
C !USES: |
|
C | SUBROUTINE CALC_COMMON_FACTORS | |
|
|
C | o Calculate common data (such as volume flux) for use | |
|
|
C | by "Right hand side" subroutines. | |
|
|
C |==========================================================| |
|
|
C | Here, we calculate terms or spatially varying factors | |
|
|
C | that are used at various points in the "RHS" subroutines.| |
|
|
C | This reduces the amount of total work, total memory | |
|
|
C | and therefore execution time and is generally a good | |
|
|
C | idea. | |
|
|
C \==========================================================/ |
|
28 |
IMPLICIT NONE |
IMPLICIT NONE |
|
|
|
29 |
C == GLobal variables == |
C == GLobal variables == |
30 |
#include "SIZE.h" |
#include "SIZE.h" |
31 |
#include "DYNVARS.h" |
#include "DYNVARS.h" |
36 |
#include "GW.h" |
#include "GW.h" |
37 |
#endif |
#endif |
38 |
|
|
39 |
|
C !INPUT/OUTPUT PARAMETERS: |
40 |
C == Routine arguments == |
C == Routine arguments == |
41 |
C bi, bj, iMin, iMax, jMin, jMax - Range of points for which calculation |
C bi, bj, iMin, iMax, jMin, jMax :: Range of points for which calculation |
42 |
C results will be set. |
C results will be set. |
43 |
C xA - Tracer cell face area normal to X |
C xA :: Tracer cell face area normal to X |
44 |
C yA - Tracer cell face area normal to X |
C yA :: Tracer cell face area normal to X |
45 |
C uTrans - Zonal volume transport through cell face |
C uTrans :: Zonal volume transport through cell face |
46 |
C vTrans - Meridional volume transport through cell face |
C vTrans :: Meridional volume transport through cell face |
47 |
C rTrans - R-direction volume transport through cell face |
C rTrans :: R-direction volume transport through cell face |
48 |
C maskUp - land/water mask for Wvel points (above tracer level) |
C maskUp :: land/water mask for Wvel points (above tracer level) |
49 |
C myThid - Instance number for this innvocation of CALC_COMMON_FACTORS |
C myThid ::Instance number for this innvocation of CALC_COMMON_FACTORS |
50 |
C |
C |
51 |
INTEGER bi,bj,iMin,iMax,jMin,jMax,k |
INTEGER bi,bj,iMin,iMax,jMin,jMax,k |
52 |
_RS xA (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RS xA (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
57 |
_RS maskUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RS maskUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
58 |
C |
C |
59 |
INTEGER myThid |
INTEGER myThid |
|
CEndOfInterface |
|
60 |
|
|
61 |
|
C !LOCAL VARIABLES: |
62 |
C == Local variables == |
C == Local variables == |
63 |
C I, J, K - Loop counters |
C I, J :: Loop counters |
64 |
INTEGER i,j |
INTEGER i,j |
65 |
|
CEOP |
66 |
|
|
67 |
C-- Initialisation |
C-- Initialisation |
68 |
DO j=1-OLy,sNy+OLy |
DO j=1-OLy,sNy+OLy |