/[MITgcm]/MITgcm/model/inc/CG3D.h
ViewVC logotype

Contents of /MITgcm/model/inc/CG3D.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5.20.1 - (show annotations) (download)
Thu Oct 2 18:10:45 2003 UTC (20 years, 8 months ago) by edhill
Branch: branch-genmake2
Changes since 1.5: +3 -1 lines
File MIME type: text/plain
 o included PACKAGES_CONFIG.h in all files where the ALLOW_${PKG_NAME}
     defines are used
 o added comments where IF ( use${PKG_NAME} ) statements will probably
     be needed -- or need to be edited

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

  ViewVC Help
Powered by ViewVC 1.1.22