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

TrackRun: remove unecessare Util:toUpper calls

parent 05f0728d
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@
#include "Distribution/Distribution.h"
#include "Track/Track.h"
#include "Utilities/OpalException.h"
#include "Utilities/Util.h"
#include "Structure/Beam.h"
#include "Structure/BoundaryGeometry.h"
#include "Structure/FieldSolver.h"
......@@ -736,13 +735,13 @@ void TrackRun::setupCyclotronTracker(){
void TrackRun::setupFieldsolver() {
fs = FieldSolver::find(Attributes::getString(itsAttr[FIELDSOLVER]));
if (Util::toUpper(fs->getType()) != std::string("NONE")) {
if (fs->getType() != std::string("NONE")) {
size_t numGridPoints = fs->getMX()*fs->getMY()*fs->getMT(); // total number of gridpoints
Beam *beam = Beam::find(Attributes::getString(itsAttr[BEAM]));
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
&& fs->getType() != std::string("SAAMG") // in SPIRAL/SAAMG we're meshing the whole domain -DW
#ifdef ENABLE_AMR
&& !Options::amr)
#else
......
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