1 |
jmc |
1.13 |
C $Header: /u/gcmpack/MITgcm/pkg/grdchk/grdchk.h,v 1.12 2007/10/09 00:05:45 jmc Exp $ |
2 |
jmc |
1.12 |
C $Name: $ |
3 |
heimbach |
1.2 |
|
4 |
|
|
c ================================================================== |
5 |
|
|
c HEADER GRADIENT_CHECK |
6 |
|
|
c ================================================================== |
7 |
|
|
c |
8 |
|
|
c o Header for doing gradient checks with the ECCO ocean state |
9 |
|
|
c estimation tool. |
10 |
|
|
c |
11 |
|
|
c started: Christian Eckert eckert@mit.edu 01-Mar-2000 |
12 |
|
|
c |
13 |
|
|
c changed: Christian Eckert eckert@mit.edu |
14 |
heimbach |
1.5 |
c heimbach@mit.edu 24-Feb-2003 |
15 |
heimbach |
1.2 |
c |
16 |
|
|
c |
17 |
|
|
c ================================================================== |
18 |
|
|
c HEADER GRADIENT_CHECK |
19 |
|
|
c ================================================================== |
20 |
|
|
|
21 |
|
|
c maxgrdchecks - maximum number of gradient checks done per tile. |
22 |
|
|
|
23 |
|
|
integer maxgrdchecks |
24 |
|
|
parameter ( maxgrdchecks = 4000 ) |
25 |
|
|
|
26 |
|
|
common /grdchkparms_r/ |
27 |
|
|
& grdchk_eps |
28 |
|
|
_RL grdchk_eps |
29 |
|
|
|
30 |
heimbach |
1.3 |
common /grdchkparms_l/ |
31 |
|
|
& useCentralDiff |
32 |
|
|
logical useCentralDiff |
33 |
|
|
|
34 |
heimbach |
1.2 |
common /grdchkparms_i/ |
35 |
|
|
& nbeg, |
36 |
|
|
& nend, |
37 |
|
|
& nstep, |
38 |
heimbach |
1.5 |
& grdchkvarindex, |
39 |
heimbach |
1.8 |
& grdchkwhichproc, |
40 |
|
|
& iGloPos, |
41 |
|
|
& jGloPos, |
42 |
|
|
& kGloPos, |
43 |
jmc |
1.13 |
& iLocTile, |
44 |
|
|
& jLocTile, |
45 |
heimbach |
1.11 |
& idep, |
46 |
|
|
& jdep, |
47 |
heimbach |
1.8 |
& obcsglo, |
48 |
heimbach |
1.9 |
& recglo, |
49 |
|
|
& iwetsum |
50 |
heimbach |
1.8 |
|
51 |
heimbach |
1.2 |
integer nbeg |
52 |
|
|
integer nend |
53 |
|
|
integer nstep |
54 |
|
|
integer grdchkvarindex |
55 |
heimbach |
1.5 |
integer grdchkwhichproc |
56 |
heimbach |
1.8 |
integer iGloPos |
57 |
|
|
integer jGloPos |
58 |
|
|
integer kGloPos |
59 |
jmc |
1.13 |
integer iLocTile |
60 |
|
|
integer jLocTile |
61 |
heimbach |
1.11 |
integer idep |
62 |
|
|
integer jdep |
63 |
heimbach |
1.8 |
integer obcsglo |
64 |
|
|
integer recglo |
65 |
heimbach |
1.10 |
integer iwetsum(nsx,nsy,0:nr) |
66 |
heimbach |
1.2 |
|
67 |
|
|
common /grdchk_r/ |
68 |
heimbach |
1.4 |
& fcrmem, fcppmem, fcpmmem, |
69 |
heimbach |
1.2 |
& xxmemref, xxmempert, |
70 |
heimbach |
1.4 |
& gfdmem, adxxmem, ftlxxmem, |
71 |
|
|
& ratioadmem, ratioftlmem |
72 |
|
|
_RL fcrmem ( maxgrdchecks ) |
73 |
|
|
_RL fcppmem ( maxgrdchecks ) |
74 |
|
|
_RL fcpmmem ( maxgrdchecks ) |
75 |
|
|
_RL xxmemref ( maxgrdchecks ) |
76 |
|
|
_RL xxmempert ( maxgrdchecks ) |
77 |
|
|
_RL gfdmem ( maxgrdchecks ) |
78 |
|
|
_RL adxxmem ( maxgrdchecks ) |
79 |
|
|
_RL ftlxxmem ( maxgrdchecks ) |
80 |
|
|
_RL ratioadmem ( maxgrdchecks ) |
81 |
|
|
_RL ratioftlmem ( maxgrdchecks ) |
82 |
heimbach |
1.2 |
|
83 |
|
|
common /grdchk_i/ |
84 |
|
|
& ncvarcomp, maxncvarcomps, |
85 |
|
|
& nwettile, |
86 |
|
|
& irecmem, |
87 |
|
|
& bimem, bjmem, |
88 |
heimbach |
1.6 |
& ilocmem,jlocmem,klocmem,iobcsmem, |
89 |
heimbach |
1.10 |
& ichkmem, icompmem, itestmem, ierrmem, icglomem |
90 |
heimbach |
1.2 |
integer ncvarcomp |
91 |
|
|
integer maxncvarcomps |
92 |
heimbach |
1.6 |
integer nwettile( nsx,nsy,nr,nobcs ) |
93 |
heimbach |
1.2 |
integer irecmem ( maxgrdchecks ) |
94 |
|
|
integer bjmem ( maxgrdchecks ) |
95 |
|
|
integer bimem ( maxgrdchecks ) |
96 |
|
|
integer klocmem ( maxgrdchecks ) |
97 |
heimbach |
1.6 |
integer iobcsmem( maxgrdchecks ) |
98 |
heimbach |
1.2 |
integer jlocmem ( maxgrdchecks ) |
99 |
|
|
integer ilocmem ( maxgrdchecks ) |
100 |
|
|
integer ichkmem ( maxgrdchecks ) |
101 |
|
|
integer icompmem( maxgrdchecks ) |
102 |
|
|
integer itestmem( maxgrdchecks ) |
103 |
|
|
integer ierrmem ( maxgrdchecks ) |
104 |
heimbach |
1.10 |
integer icglomem( maxgrdchecks ) |
105 |
heimbach |
1.6 |
|
106 |
|
|
#ifdef ALLOW_OBCS_CONTROL |
107 |
heimbach |
1.7 |
common /grdchk_obcs_mask_r/ |
108 |
|
|
& grdchk_maskxz, grdchk_maskyz |
109 |
heimbach |
1.6 |
_RL grdchk_maskxz(1-olx:snx+olx,nr,nsx,nsy,nobcs) |
110 |
|
|
_RL grdchk_maskyz(1-oly:sny+oly,nr,nsx,nsy,nobcs) |
111 |
|
|
#endif |
112 |
|
|
|
113 |
|
|
|
114 |
heimbach |
1.2 |
|
115 |
|
|
c ================================================================== |
116 |
|
|
c END OF HEADER GRADIENT_CHECK |
117 |
|
|
c ================================================================== |
118 |
|
|
|
119 |
|
|
|