Commit 791b3097 authored by winklehner_d's avatar winklehner_d
Browse files

Merge branch '406-avoid-NOP-check-for-SAAMG' into 'master'

Resolve "OPAL aborts with "number of particles per cell too low" error when running SAAMG solver"

Closes #406

See merge request !216
parents a9ab315a fa291c98
......@@ -759,6 +759,7 @@ void TrackRun::setupFieldsolver() {
size_t numParticles = beam->getNumberOfParticles();
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
&& !Options::amr)
#else
......@@ -878,4 +879,4 @@ double TrackRun::setDistributionParallelT(Beam *beam) {
// Return charge per macroparticle.
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