/[MITgcm]/MITgcm/pkg/grdchk/grdchk.h
ViewVC logotype

Contents of /MITgcm/pkg/grdchk/grdchk.h

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


Revision 1.11 - (show annotations) (download)
Fri Apr 20 19:26:43 2007 UTC (17 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59h
Changes since 1.10: +4 -0 lines
File MIME type: text/plain
Enable gradient checks on vector-valued objective function
in the context of ADMTLM.

1
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 c heimbach@mit.edu 24-Feb-2003
13 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 common /grdchkparms_l/
29 & useCentralDiff
30 logical useCentralDiff
31
32 common /grdchkparms_i/
33 & nbeg,
34 & nend,
35 & nstep,
36 & grdchkvarindex,
37 & grdchkwhichproc,
38 & iGloPos,
39 & jGloPos,
40 & kGloPos,
41 & iGloTile,
42 & jGloTile,
43 & idep,
44 & jdep,
45 & obcsglo,
46 & recglo,
47 & iwetsum
48
49 integer nbeg
50 integer nend
51 integer nstep
52 integer grdchkvarindex
53 integer grdchkwhichproc
54 integer iGloPos
55 integer jGloPos
56 integer kGloPos
57 integer iGloTile
58 integer jGloTile
59 integer idep
60 integer jdep
61 integer obcsglo
62 integer recglo
63 integer iwetsum(nsx,nsy,0:nr)
64
65 common /grdchk_r/
66 & fcrmem, fcppmem, fcpmmem,
67 & xxmemref, xxmempert,
68 & gfdmem, adxxmem, ftlxxmem,
69 & ratioadmem, ratioftlmem
70 _RL fcrmem ( maxgrdchecks )
71 _RL fcppmem ( maxgrdchecks )
72 _RL fcpmmem ( maxgrdchecks )
73 _RL xxmemref ( maxgrdchecks )
74 _RL xxmempert ( maxgrdchecks )
75 _RL gfdmem ( maxgrdchecks )
76 _RL adxxmem ( maxgrdchecks )
77 _RL ftlxxmem ( maxgrdchecks )
78 _RL ratioadmem ( maxgrdchecks )
79 _RL ratioftlmem ( maxgrdchecks )
80
81 common /grdchk_i/
82 & ncvarcomp, maxncvarcomps,
83 & nwettile,
84 & irecmem,
85 & bimem, bjmem,
86 & ilocmem,jlocmem,klocmem,iobcsmem,
87 & ichkmem, icompmem, itestmem, ierrmem, icglomem
88 integer ncvarcomp
89 integer maxncvarcomps
90 integer nwettile( nsx,nsy,nr,nobcs )
91 integer irecmem ( maxgrdchecks )
92 integer bjmem ( maxgrdchecks )
93 integer bimem ( maxgrdchecks )
94 integer klocmem ( maxgrdchecks )
95 integer iobcsmem( maxgrdchecks )
96 integer jlocmem ( maxgrdchecks )
97 integer ilocmem ( maxgrdchecks )
98 integer ichkmem ( maxgrdchecks )
99 integer icompmem( maxgrdchecks )
100 integer itestmem( maxgrdchecks )
101 integer ierrmem ( maxgrdchecks )
102 integer icglomem( maxgrdchecks )
103
104 #ifdef ALLOW_OBCS_CONTROL
105 common /grdchk_obcs_mask_r/
106 & grdchk_maskxz, grdchk_maskyz
107 _RL grdchk_maskxz(1-olx:snx+olx,nr,nsx,nsy,nobcs)
108 _RL grdchk_maskyz(1-oly:sny+oly,nr,nsx,nsy,nobcs)
109 #endif
110
111
112
113 c ==================================================================
114 c END OF HEADER GRADIENT_CHECK
115 c ==================================================================
116
117

  ViewVC Help
Powered by ViewVC 1.1.22