/[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.8 - (hide annotations) (download)
Tue Nov 8 06:03:21 2005 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57y_post, checkpoint57y_pre, checkpoint57x_post
Changes since 1.7: +4 -6 lines
File MIME type: text/plain
put all intermediate arrays to the same size.

1 jmc 1.8 C $Header: /u/gcmpack/MITgcm/model/inc/CG3D.h,v 1.7 2003/10/31 20:35:32 edhill 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     COMMON /CG3D_WK_R/
51 adcroft 1.4 & cg3d_q, cg3d_r, cg3d_s
52 jmc 1.8 _RL cg3d_q(1-1 :sNx+1 ,1-1 :sNy+1 ,Nr,nSx,nSy)
53     _RL cg3d_r(1-1 :sNx+1 ,1-1 :sNy+1 ,Nr,nSx,nSy)
54     _RL cg3d_s(1-1 :sNx+1 ,1-1 :sNy+1 ,Nr,nSx,nSy)
55 adcroft 1.1
56     #endif /* ALLOW_NONHYDROSTATIC */

  ViewVC Help
Powered by ViewVC 1.1.22