OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Options.h
Go to the documentation of this file.
1 #ifndef OPTIONS_HH
2 #define OPTIONS_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Options.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Struct: Options
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:48 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 
22 // Namespace Options.
23 // ------------------------------------------------------------------------
25 // This namespace contains the global option flags.
26 
27 #include "OptionTypes.h"
29 
30 namespace Options {
32  // If true, print an input echo.
33  extern bool echo;
34 
36  // If true, print informative messages.
37  extern bool info;
38 
39  extern int infoLevel;
40 
42  // If true, print warning messages.
43  extern bool warn;
44 
45  extern int warnLevel;
46 
47  extern bool csrDump;
48 
50  // If true, use special initial velocity distribution for parallel plate and print special debug output .
51  extern bool ppdebug;
52 
54  extern bool cZero;
55 
57  extern bool enableHDF5;
58 
59  extern bool asciidump;
60 
61  // If the distance of a particle to bunch mass larger than remotePartDel times of the rms size of the bunch in any dimension,
62  // the particle will be deleted artifically to hold the accuracy of space charge calculation. The default setting of -1 stands for no deletion.
63  extern double remotePartDel;
64 
65  extern double beamHaloBoundary;
66 
67  extern bool writeBendTrajectories;
68 
69  extern bool idealized;
70 
72  // If true, print CPU time before and after each command.
73  extern bool mtrace;
74 
76  // The global random generator.
77  extern Random rangen;
78 
80  extern int seed;
81 
83  extern int psDumpFreq;
84 
86  extern int statDumpFreq;
87 
89  extern int sptDumpFreq;
90 
92  extern int repartFreq;
93 
95  extern int minBinEmitted;
96 
98  extern int minStepForRebin;
99 
101  extern int rebinFreq;
102 
104  // if true, dump phase space after each turn
105  extern bool psDumpEachTurn;
106 
107  // Governs how often boundp_destroy is called to destroy lost particles
108  // Mainly used in the CyclotronTracker as of now -DW
109  extern int boundpDestroyFreq;
110 
112  // - GLOBAL, in Cartesian frame of the global particle
113  // - BUNCH_MEAN, in Cartesian frame of the bunch mean
114  // - REFERENCE, in Cartesian frame of the reference (0) particle
115  extern DumpFrame psDumpFrame;
116 
118  extern int scSolveFreq;
119 
120  // How many small timesteps are inside the large timestep used in multiple time stepping (MTS) integrator
121  extern int mtsSubsteps;
122 
123  extern bool rhoDump;
124 
125  extern bool ebDump;
126 
127  // if true opal find the phases in the cavities, such that the energy gain is at maximum
128  extern int autoPhase;
129 
131  extern int surfDumpFreq;
132 
134  extern int numBlocks;
135 
137  extern int recycleBlocks;
138 
140  extern int nLHS;
141 
143  extern std::string rngtype;
144 
146  extern bool cloTuneOnly;
147 
149  extern int version;
150 
151 #ifdef ENABLE_AMR
152  extern bool amr;
153 
155  extern int amrYtDumpFreq;
156 
157  extern int amrRegridFreq;
158 #endif
159 
160  extern bool memoryDump;
161 
163  extern double haloShift;
164 
166  extern unsigned int delPartFreq;
167 }
168 
169 #endif // OPAL_Options_HH
bool mtrace
Trace flag.
Definition: Options.cpp:29
int seed
The current random seed.
Definition: Options.cpp:41
int infoLevel
Definition: Options.cpp:9
double haloShift
The constant parameter C to shift halo, by < w^4 > / < w^2 > ^2 - C (w=x,y,z)
Definition: Options.cpp:110
bool rhoDump
Definition: Options.cpp:32
int warnLevel
Definition: Options.cpp:11
int minStepForRebin
The number of steps into the simulation before the bins are squashed into a single bin...
Definition: Options.cpp:66
bool echo
Echo flag.
Definition: Options.cpp:7
bool memoryDump
Definition: Options.cpp:108
bool info
Info flag.
Definition: Options.cpp:8
int recycleBlocks
RCG: number of recycle blocks.
Definition: Options.cpp:82
double beamHaloBoundary
Definition: Options.cpp:24
bool warn
Warn flag.
Definition: Options.cpp:10
bool cZero
if true create symmetric distribution
Definition: Options.cpp:16
int statDumpFreq
The frequency to dump statistical values, e.e. dump data when stepstatDumpFreq==0.
Definition: Options.cpp:54
unsigned int delPartFreq
The frequency to delete particles (currently: OPAL-cycl only)
Definition: Options.cpp:112
int version
opal version of input file
Definition: Options.cpp:97
int sptDumpFreq
The frequency to dump single particle trajectory of particles with ID = 0 & 1.
Definition: Options.cpp:57
Random rangen
Random generator.
Definition: Options.cpp:38
double remotePartDel
Definition: Options.cpp:22
int repartFreq
The frequency to do particles repartition for better load balance between nodes.
Definition: Options.cpp:60
std::string rngtype
random number generator
Definition: Options.cpp:85
int numBlocks
RCG: cycle length.
Definition: Options.cpp:81
The CLASSIC random generator.
Definition: ClassicRandom.h:36
bool enableHDF5
If true HDF5 files are written.
Definition: Options.cpp:35
int rebinFreq
The frequency to reset energy bin ID for all particles.
Definition: Options.cpp:69
int autoPhase
Definition: Options.cpp:45
int nLHS
number of old left hand sides used to extrapolate a new start vector
Definition: Options.cpp:83
int psDumpFreq
The frequency to dump the phase space, i.e.dump data when steppsDumpFreq==0.
Definition: Options.cpp:48
bool amr
Definition: Options.cpp:100
bool psDumpEachTurn
phase space dump flag for OPAL-cycl
Definition: Options.cpp:30
DumpFrame psDumpFrame
flag to decide in which coordinate frame the phase space will be dumped for OPAL-cycl ...
Definition: Options.cpp:31
bool asciidump
Definition: Options.cpp:18
int minBinEmitted
The number of bins that have to be emitted before the bin are squashed into a single bin...
Definition: Options.cpp:63
int amrRegridFreq
Definition: Options.cpp:105
int surfDumpFreq
The frequency to dump the particle-geometry surface interation data.
Definition: Options.cpp:78
int scSolveFreq
The frequency to solve space charge fields.
Definition: Options.cpp:72
int amrYtDumpFreq
The frequency to dump AMR grid data and particles into file.
Definition: Options.cpp:103
bool cloTuneOnly
Do closed orbit and tune calculation only.
Definition: Options.cpp:87
int boundpDestroyFreq
Definition: Options.cpp:91
int mtsSubsteps
Definition: Options.cpp:75
bool ppdebug
ppdebug flag.
Definition: Options.cpp:13
bool idealized
Definition: Options.cpp:94
bool csrDump
Definition: Options.cpp:12
bool ebDump
Definition: Options.cpp:33
bool writeBendTrajectories
Definition: Options.cpp:26