/[MITgcm]/MITgcm/verification/global_ocean.90x40x15/code_ad/tamc.h
ViewVC logotype

Contents of /MITgcm/verification/global_ocean.90x40x15/code_ad/tamc.h

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


Revision 1.8 - (show annotations) (download)
Wed Feb 18 22:21:33 2004 UTC (20 years, 3 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint52l_pre, checkpoint54d_post, checkpoint54e_post, checkpoint52k_post, checkpoint54, checkpoint53, checkpoint54f_post, checkpoint53d_post, checkpoint54b_post, checkpoint52m_post, checkpoint54a_pre, checkpoint53c_post, checkpoint54a_post, checkpoint53a_post, checkpoint53g_post, checkpoint53f_post, checkpoint52j_post, checkpoint52l_post, checkpoint52n_post, checkpoint53b_pre, checkpoint53b_post, checkpoint53d_pre, checkpoint54c_post
Changes since 1.7: +3 -5 lines
File MIME type: text/plain
extend grad. check test time interval

1
2 #include "PACKAGES_CONFIG.h"
3
4 #ifdef ALLOW_PTRACERS
5 # include "PTRACERS_OPTIONS.h"
6 #endif
7
8 c ================================================================
9 c HEADER TAMC
10 c ================================================================
11 c
12 c o Header for the use of the Tangent Linear and Adjoint Model
13 c Compiler (TAMC).
14 c
15 c started: Christian Eckert eckert@mit.edu 04-Feb-1999
16 c changed: Patrick Heimbach heimbach@mit.edu 06-Jun-2000
17 c - New parameter nlevchk_0 for dimensionalising
18 c common blocks in the undef ALLOW_TAMC_CHECKPOINTING case
19 c - nhreads_chkpt was declared at the wrong place
20 c - new keys, separate for different packages
21
22 c ================================================================
23 c HEADER TAMC
24 c ================================================================
25
26
27 c TAMC checkpointing parameters:
28 c ==============================
29 c
30 c The checkpointing parameters have to be consistent with other model
31 c parameters and variables. This has to be checked before the model is
32 c run.
33 c
34 c nyears_chkpt - Number of calendar years affected by the assimilation
35 c experiment; nyears_chkpt has to be at least equal to
36 c the result of cal_IntYears(mythid).
37 c nmonths_chkpt - Number of months per year; nmonth_chkpt has to be at
38 c least equal to nmonthyear.
39 c ndays_chkpt - Number of days per month; nday_chkpt has to be at least
40 c equal to nmaxdaymonth.
41 c nsteps_chkpt - Number of steps per day; nsteps_chkpt has to be at
42 c least equal to cal_nStepDay(mythid)
43 c ncheck_chkpt - Number of innermost checkpoints.
44 c
45 c ngeom_chkpt - Geometry factor.
46 c nthreads_chkpt - Number of threads to be used; nth_chkpt .eq. nTx*nTy
47
48 integer nyears_chkpt
49 integer nmonths_chkpt
50 integer ndays_chkpt
51 integer ngeom_chkpt
52 integer ncheck_chkpt
53 integer nthreads_chkpt
54
55 parameter (nyears_chkpt = 1 )
56 parameter (nmonths_chkpt = 12 )
57 parameter (ndays_chkpt = 31 )
58 parameter (ngeom_chkpt = nr*nsx*nsy )
59 parameter (ncheck_chkpt = 6 )
60 parameter ( nthreads_chkpt = 1 )
61
62 #ifdef ALLOW_TAMC_CHECKPOINTING
63
64 integer nchklev_1
65 parameter( nchklev_1 = 6 )
66 integer nchklev_2
67 parameter( nchklev_2 = 120 )
68 integer nchklev_3
69 parameter( nchklev_3 = 3 )
70
71 c-- Note always check for the correct sizes of the common blocks!
72
73 #else /* ALLOW_TAMC_CHECKPOINTING undefined */
74
75 integer nchklev_0
76 parameter( nchklev_0 = 64800 )
77
78 #endif /* ALLOW_TAMC_CHECKPOINTING */
79
80 c TAMC keys:
81 c ==========
82 c
83 c The keys are used for storing and reading data of the reference
84 c trajectory.
85 c
86 c The convention used here is:
87 c ikey_<name>
88 c
89 c which means that this key is used in routine <name> for reading
90 c and writing data.
91
92 common /tamc_keys_i/
93 & ikey_dynamics,
94 & ikey_yearly,
95 & ikey_daily_1,
96 & ikey_daily_2,
97 & iloop_daily
98
99 integer ikey_dynamics
100 integer ikey_yearly
101 integer ikey_daily_1
102 integer ikey_daily_2
103 integer iloop_daily
104
105 INTEGER isbyte
106 PARAMETER( isbyte = 8 )
107 INTEGER maximpl
108 PARAMETER( maximpl = 6 )
109 INTEGER maxpass
110 #ifdef ALLOW_PTRACERS
111 PARAMETER( maxpass = NUMBER_OF_PTRACERS + 2 )
112 #else
113 # ifdef ALLOW_PASSIVE_TRACER
114 PARAMETER( maxpass = 3 )
115 # else
116 PARAMETER( maxpass = 2 )
117 # endif
118 #endif
119 INTEGER maxcube
120 PARAMETER( maxcube = 1 )
121
122 INTEGER act0, act1, act2, act3, act4
123 INTEGER max0, max1, max2, max3
124 INTEGER iikey, kkey, passkey, igadkey,
125 & itdkey, idynkey, igmkey, ikppkey, iptrkey
126
127 c ================================================================
128 c END OF HEADER TAMC
129 c ================================================================
130
131

  ViewVC Help
Powered by ViewVC 1.1.22