1 |
cnh |
1.5 |
C $Header: /u/gcmpack/models/MITgcmUV/model/inc/CG3D.h,v 1.4 2001/06/29 17:14:49 adcroft Exp $ |
2 |
adcroft |
1.4 |
C $Name: $ |
3 |
adcroft |
1.1 |
|
4 |
|
|
#ifdef ALLOW_NONHYDROSTATIC |
5 |
cnh |
1.5 |
CBOP |
6 |
|
|
C !ROUTINE: CG3D.h |
7 |
|
|
C !INTERFACE: |
8 |
|
|
C include "CG3D.h" |
9 |
|
|
C !DESCRIPTION: \bv |
10 |
|
|
C *==========================================================* |
11 |
|
|
C | CG3D.h |
12 |
|
|
C | o Three-dimensional conjugate gradient solver header. |
13 |
|
|
C *==========================================================* |
14 |
|
|
C | The common blocks set up here are used in the elliptic |
15 |
|
|
C | equation inversion. They are also used as the interface |
16 |
|
|
C | to the rest of the model. To set the source term for the |
17 |
|
|
C | solver set the appropriate array below. To read the |
18 |
|
|
C | solution read from the appropriate array below. |
19 |
|
|
C *==========================================================* |
20 |
|
|
C \ev |
21 |
|
|
CEOP |
22 |
adcroft |
1.1 |
|
23 |
|
|
C-- COMMON /CG3D_R/ DEL**2 Laplacian operators |
24 |
|
|
C aW3d - East-west operator. |
25 |
|
|
C aS3d - North-south operator. |
26 |
|
|
C aV3d - Vertical operator. |
27 |
|
|
C etaNBuf - Shared buffers for accumulating con. grad vector product. |
28 |
|
|
C alphaBuf |
29 |
|
|
C errBuf |
30 |
|
|
C nrmBuf |
31 |
|
|
C cg3dNorm - A matrix normalisation factor. |
32 |
|
|
COMMON /CG3D_R/ |
33 |
|
|
& aW3d, |
34 |
|
|
& aS3d, |
35 |
|
|
& aV3d, |
36 |
|
|
& zMC, zML, zMU, |
37 |
adcroft |
1.2 |
& cg3dNorm |
38 |
adcroft |
1.1 |
_RS aW3d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
39 |
|
|
_RS aS3d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
40 |
|
|
_RS aV3d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
41 |
|
|
_RS zMC (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
42 |
|
|
_RS zML (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
43 |
|
|
_RS zMU (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
44 |
|
|
_RL cg3dNorm |
45 |
|
|
|
46 |
|
|
C-- COMMON /CG3D_WK_R/ Work array common block |
47 |
|
|
C cg3d_q - Intermediate matrix-vector product term |
48 |
|
|
C cg3d_r - " |
49 |
|
|
C cg3d_s - " |
50 |
|
|
C cg3d_x Solution vector |
51 |
|
|
C cg3d_b Right-hand side vector |
52 |
|
|
COMMON /CG3D_WK_R/ |
53 |
adcroft |
1.4 |
& cg3d_q, cg3d_r, cg3d_s |
54 |
adcroft |
1.1 |
_RL cg3d_q(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx,nSy) |
55 |
|
|
_RL cg3d_r(1-1 :sNx+1 ,1-1 :sNy+1 ,nR,nSx,nSy) |
56 |
|
|
_RL cg3d_s(1-1 :sNx+1 ,1-1 :sNy+1 ,nR,nSx,nSy) |
57 |
|
|
|
58 |
|
|
#endif /* ALLOW_NONHYDROSTATIC */ |