/[MITgcm]/MITgcm_contrib/verification_other/natl_box_adjoint/code_pack/tamc.h
ViewVC logotype

Annotation of /MITgcm_contrib/verification_other/natl_box_adjoint/code_pack/tamc.h

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


Revision 1.1 - (hide annotations) (download)
Sat Feb 4 02:15:44 2012 UTC (13 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64k, checkpoint64x, checkpoint64z, checkpoint64o, checkpoint64p, checkpoint64r, checkpoint64w, checkpoint64v, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint64m, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65u, checkpoint65j, checkpoint67a, checkpoint67b, checkpoint65i, checkpoint67d, checkpoint65m, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65e, checkpoint64i, checkpoint64h, checkpoint65h, checkpoint65, checkpoint64j, checkpoint65n, HEAD
File MIME type: text/plain
move un-tested set-up from MITgcm/verification/natl_box_adjoint to Contrib/verification_other

1 jmc 1.1 C $Header: /u/gcmpack/MITgcm/verification/natl_box_adjoint/code_pack/tamc.h,v 1.2 2009/02/13 21:53:17 heimbach Exp $
2     C $Name: $
3    
4     #include "PACKAGES_CONFIG.h"
5    
6    
7     c ================================================================
8     c HEADER TAMC
9     c ================================================================
10     c
11     c o Header for the use of the Tangent Linear and Adjoint Model
12     c Compiler (TAMC).
13     c
14     c started: Christian Eckert eckert@mit.edu 04-Feb-1999
15     c
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
21     c
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 = 4 )
68     integer nchklev_3
69     parameter( nchklev_3 = 3 )
70     integer nchklev_4
71     parameter( nchklev_4 = 2 )
72    
73     c-- Note always check for the correct sizes of the common blocks!
74    
75     #else /* ALLOW_TAMC_CHECKPOINTING undefined */
76    
77     integer nchklev_0
78     parameter( nchklev_0 = 64800 )
79    
80     #endif /* ALLOW_TAMC_CHECKPOINTING */
81    
82     c TAMC keys:
83     c ==========
84     c
85     c The keys are used for storing and reading data of the reference
86     c trajectory.
87     c
88     c The convention used here is:
89     c ikey_<name>
90     c
91     c which means that this key is used in routine <name> for reading
92     c and writing data.
93    
94     common /tamc_keys_i/
95     & ikey_dynamics,
96     & ikey_yearly,
97     & ikey_daily_1,
98     & ikey_daily_2,
99     & iloop_daily
100    
101     integer ikey_dynamics
102     integer ikey_yearly
103     integer ikey_daily_1
104     integer ikey_daily_2
105     integer iloop_daily
106    
107     INTEGER isbyte
108     #ifdef ALLOW_TAMC_SINGLEPREC_COMLEV
109     PARAMETER( isbyte = 4 )
110     #else
111     PARAMETER( isbyte = 8 )
112     #endif
113    
114     INTEGER maximpl
115     PARAMETER( maximpl = 6 )
116     #ifdef ALLOW_PTRACERS
117     cph moved this to PTRACERS_SIZE.h
118     cph INTEGER maxpass
119     cph PARAMETER( maxpass = PTRACERS_num + 2 )
120     #else
121     INTEGER maxpass
122     PARAMETER( maxpass = 2 )
123     #endif
124     INTEGER maxcube
125     PARAMETER( maxcube = 1 )
126    
127     INTEGER act0, act1, act2, act3, act4
128     INTEGER max0, max1, max2, max3
129     INTEGER iikey, kkey, passkey, igadkey,
130     & itdkey, idynkey, igmkey
131    
132     c ================================================================
133     c END OF HEADER TAMC
134     c ================================================================
135    
136    

  ViewVC Help
Powered by ViewVC 1.1.22