Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 45bf5afa authored by Andreas Adelmann's avatar Andreas Adelmann
Browse files

Introduce Option BEAMHALOBOUNDARY, this is experimental

parent 5e9de0df
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,16 @@ src/opal_unit_tests
*cmake_install.cmake
tests/tools/gtest
tests/opal_unit_tests
.DS_Store
classic/.DS_Store
classic/5.0/.DS_Store
classic/5.0/src/.DS_Store
classic/5.0/src/AbsBeamline/.DS_Store
ippl/.DS_Store
ippl/doc/.DS_Store
ippl/doc/tex/.DS_Store
ippl/test/.DS_Store
ippl/test/particle/.DS_Store
src/.DS_Store
......@@ -16,4 +16,6 @@ namespace Options {
// the particle will be deleted artifically to hold the accuracy of space charge calculation. The default setting of -1 stands for no deletion.
int remotePartDel = -1;
double beamHaloBoundary = 0;
}
......@@ -51,6 +51,8 @@ namespace Options {
// If the distance of a particle to bunch mass larger than remotePartDel times of the rms size of the bunch in any dimension,
// the particle will be deleted artifically to hold the accuracy of space charge calculation. The default setting of -1 stands for no deletion.
extern int remotePartDel;
extern double beamHaloBoundary;
}
#endif // OPAL_Options_HH
......@@ -69,6 +69,7 @@ namespace {
ENABLEHDF5,
ASCIIDUMP,
BOUNDPDESTROYFQ,
BEAMHALOBOUNDARY,
SIZE
};
}
......@@ -160,6 +161,9 @@ Option::Option():
itsAttr[BOUNDPDESTROYFQ] = Attributes::makeReal
("BOUNDPDESTROYFQ", "The frequency to do boundp_destroy to delete lost particles. Default 10",10.0);
itsAttr[BEAMHALOBOUNDARY] = Attributes::makeReal
("BEAMHALOBOUNDARY", "Defines in therms of sigma where the halo starts Default 0.0",0.0);
FileStream::setEcho(echo);
rangen.init55(seed);
}
......@@ -200,6 +204,7 @@ Option::Option(const std::string &name, Option *parent):
Attributes::setBool(itsAttr[ENABLEHDF5], enableHDF5);
Attributes::setBool(itsAttr[ASCIIDUMP], asciidump);
Attributes::setReal(itsAttr[BOUNDPDESTROYFQ], 10);
Attributes::setReal(itsAttr[BEAMHALOBOUNDARY], 0);
}
......@@ -313,11 +318,11 @@ void Option::execute() {
rngtype = std::string("RANDOM");
}
if(itsAttr[BOUNDPDESTROYFQ]) {
boundpDestroyFreq = int(Attributes::getReal(itsAttr[BOUNDPDESTROYFQ]));
if(itsAttr[BEAMHALOBOUNDARY]) {
beamHaloBoundary = Attributes::getReal(itsAttr[BEAMHALOBOUNDARY]);
}
else {
boundpDestroyFreq = 10;
beamHaloBoundary = 0;
}
// Set message flags.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment