| 1 |
C $Header: /u/gcmpack/MITgcm/model/inc/CG3D.h,v 1.9 2005/12/20 20:08:34 jmc Exp $ |
| 2 |
C $Name: $ |
| 3 |
|
| 4 |
#ifdef ALLOW_NONHYDROSTATIC |
| 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 |
|
| 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 aC3d :: 3D operator main diagonal term. |
| 28 |
C zMC, zML, zMU :: preconditioner 3D solver |
| 29 |
C cg3dNorm - A matrix normalisation factor. |
| 30 |
COMMON /CG3D_R/ |
| 31 |
& aW3d, aS3d, aV3d, |
| 32 |
& aC3d, |
| 33 |
& zMC, zML, zMU, |
| 34 |
& cg3dNorm |
| 35 |
_RS aW3d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
| 36 |
_RS aS3d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
| 37 |
_RS aV3d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
| 38 |
_RS aC3d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
| 39 |
_RS zMC (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
| 40 |
_RS zML (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
| 41 |
_RS zMU (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
| 42 |
_RL cg3dNorm |
| 43 |
|
| 44 |
C-- COMMON /CG3D_WK_R/ Work array common block |
| 45 |
C cg3d_q - Intermediate matrix-vector product term |
| 46 |
C cg3d_r - idem |
| 47 |
C cg3d_s - idem |
| 48 |
COMMON /CG3D_WK_R/ |
| 49 |
& cg3d_q, cg3d_r, cg3d_s |
| 50 |
_RL cg3d_q(1-1 :sNx+1 ,1-1 :sNy+1 ,Nr,nSx,nSy) |
| 51 |
_RL cg3d_r(1-1 :sNx+1 ,1-1 :sNy+1 ,Nr,nSx,nSy) |
| 52 |
_RL cg3d_s(1-1 :sNx+1 ,1-1 :sNy+1 ,Nr,nSx,nSy) |
| 53 |
|
| 54 |
#endif /* ALLOW_NONHYDROSTATIC */ |