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

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

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


Revision 1.15 - (show annotations) (download)
Sat Jul 11 21:56:16 2009 UTC (14 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61x, checkpoint61y
Changes since 1.14: +8 -8 lines
File MIME type: text/plain
change size of overlap for arrays cg2d_r,s & q to 1 in order to use
 simple EXCH ; for now, keep previous size array for gc2d_nsa to avoid
 Pb with store directives and missing simple EXCH adjoint code.

1 C $Header: /u/gcmpack/MITgcm/model/inc/CG2D.h,v 1.14 2006/12/05 05:16:30 jmc Exp $
2 C $Name: $
3
4 CBOP
5 C !ROUTINE: CG2D.h
6 C !INTERFACE:
7 C include "CG2D.h"
8 C
9 C !DESCRIPTION:
10 C \bv
11 C *==========================================================*
12 C | CG2D.h
13 C | o Two-dimensional conjugate gradient solver header.
14 C *==========================================================*
15 C | Internal (private) data structures.
16 C *==========================================================*
17 C \ev
18 CEOP
19
20 C-- COMMON /CG2D_I_L/ cg2dNormaliseRHS
21 C cg2dNormaliseRHS :: flag set to TRUE if normalise RHS in the Solver
22 COMMON /CG2D_I_L/ cg2dNormaliseRHS
23 LOGICAL cg2dNormaliseRHS
24
25 C-- COMMON /CG2D_R/ DEL**2 Laplacian operators
26 C aW2d :: East-west operator.
27 C aS2d :: North-south operator.
28 C aC2d :: 2D operator main diagonal term.
29 C pW :: East-west off-diagonal term of preconditioner.
30 C pS :: North-south off-diagonal term of preconditioner.
31 C pC :: Main diagonal term of preconditioner.
32 C cg2dNorm :: A matrix normalisation factor.
33 C cg2dTolerance :: cg2d solver Tolerance (solver unit = m2/s2 or no unit,
34 C depending on cg2dNormaliseRHS)
35 COMMON /CG2D_I_R/
36 & aW2d, aS2d, aC2d,
37 & pW, pS, pC,
38 & cg2dNorm, cg2dTolerance
39 _RS aW2d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
40 _RS aS2d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
41 _RS aC2d (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
42 _RS pW (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
43 _RS pS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
44 _RS pC (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
45 _RL cg2dNorm, cg2dTolerance
46
47 C-- COMMON /CG2D_I_WK_R/ Work array common block
48 C cg2d_q :: Intermediate matrix-vector product term
49 C cg2d_r :: *same*
50 C cg2d_s :: *same*
51 COMMON /CG2D_I_WK_R/
52 & cg2d_q, cg2d_r, cg2d_s
53 _RL cg2d_q(1-1:sNx+1,1-1:sNy+1,nSx,nSy)
54 #ifdef ALLOW_CG2D_NSA
55 _RL cg2d_r(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
56 _RL cg2d_s(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
57 #else /* ALLOW_CG2D_NSA */
58 _RL cg2d_r(1-1:sNx+1,1-1:sNy+1,nSx,nSy)
59 _RL cg2d_s(1-1:sNx+1,1-1:sNy+1,nSx,nSy)
60 #endif /* ALLOW_CG2D_NSA */
61
62 #ifdef ALLOW_CG2D_NSA
63 C-- COMMON /CG2D_I_WK_R2/ extra work array common block
64 C cg2d_z :: Intermediate matrix-vector product term
65 C :: reduces the number of recomputation in adjoint mode
66 C :: this field is superfluous if your cg2d is self-adjoint.
67 COMMON /CG2D_I_WK_R2/ cg2d_z
68 _RL cg2d_z(1-1:sNx+1,1-1:sNy+1,nSx,nSy)
69 #endif /* ALLOW_CG2D_NSA */

  ViewVC Help
Powered by ViewVC 1.1.22