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