Commit fa291c98 authored by Daniel Winklehner's avatar Daniel Winklehner
Browse files

added line to avoid throwing Exception in SAAMG case. -DW

parent a9ab315a
...@@ -759,6 +759,7 @@ void TrackRun::setupFieldsolver() { ...@@ -759,6 +759,7 @@ void TrackRun::setupFieldsolver() {
size_t numParticles = beam->getNumberOfParticles(); size_t numParticles = beam->getNumberOfParticles();
if (!opal->inRestartRun() && numParticles < numGridPoints if (!opal->inRestartRun() && numParticles < numGridPoints
&& Util::toUpper(fs->getType()) != std::string("SAAMG") // in SPIRAL/SAAMG we're meshing the whole domain -DW
#ifdef ENABLE_AMR #ifdef ENABLE_AMR
&& !Options::amr) && !Options::amr)
#else #else
...@@ -878,4 +879,4 @@ double TrackRun::setDistributionParallelT(Beam *beam) { ...@@ -878,4 +879,4 @@ double TrackRun::setDistributionParallelT(Beam *beam) {
// Return charge per macroparticle. // Return charge per macroparticle.
return beam->getCharge() * beam->getCurrent() / (beam->getFrequency()*1.0e6) / numberOfParticles; return beam->getCharge() * beam->getCurrent() / (beam->getFrequency()*1.0e6) / numberOfParticles;
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment