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 847ca5fe authored by frey_m's avatar frey_m
Browse files

Do not check #particles < #gridpoints in restart mode

parent b30ce3ba
No related branches found
No related tags found
1 merge request!33Master
......@@ -1003,7 +1003,7 @@ void TrackRun::setupFieldsolver() {
Beam *beam = Beam::find(Attributes::getString(itsAttr[BEAM]));
size_t numParticles = beam->getNumberOfParticles();
if (numParticles < numGridPoints)
if (!opal->inRestartRun() && numParticles < numGridPoints)
throw OpalException("TrackRun::setupFieldsolver()",
"The number of simulation particles (" + std::to_string(numParticles) + ") \n" +
"is smaller than the number of gridpoints (" + std::to_string(numGridPoints) + ").\n" +
......
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