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

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

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


Revision 1.2 - (hide annotations) (download)
Tue May 18 17:40:37 1999 UTC (25 years, 1 month ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint28, checkpoint29, checkpoint22, checkpoint23, checkpoint24, checkpoint25, checkpoint27, branch-atmos-merge-freeze, branch-atmos-merge-start, checkpoint26, branch-atmos-merge-shapiro, checkpoint33, checkpoint32, checkpoint31, checkpoint30, checkpoint34, branch-atmos-merge-zonalfilt, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase7, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Changes since 1.1: +2 -12 lines
File MIME type: text/plain
Changed number of arguments to GLOBAL_SUM and GLOBAL_MAX to two.
This meant we can delete several "buffer" arrays.
Instigated by Ralf.

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

  ViewVC Help
Powered by ViewVC 1.1.22