57 static const std::map<std::string, TaggingCriteria> stringTaggingCriteria_s = {
66 if (stringTaggingCriteria_s.count(tagging)) {
67 tagging_m = stringTaggingCriteria_s.at(tagging);
70 "Not supported refinement criteria.\n"
71 "Check the accepted values: "
72 "[CHARGE_DENSITY | POTENTIAL | EFIELD | "
73 "MOMENTA | MIN_NUM_PARTICLES | MAX_NUM_PARTICLES].");
107 tagging =
"CHARGE_DENSITY";
110 tagging =
"POTENTIAL";
119 tagging =
"MIN_NUM_PARTICLES";
122 tagging =
"MAX_NUM_PARTICLES";
126 "Only numbers between 0 and 5 allowed.");
void setMinNumParticles(size_t minNumPart)
TaggingCriteria
Methods for tagging cells for refinement.
@ MAX_NUM_PARTICLES
max. particles per cell
@ MIN_NUM_PARTICLES
min. particles per cell
const bool & isRefined() const
void setScalingFactor(double scaling)
double scaling_m
Scaling factor for tagging [0, 1].
IpplTimings::TimerRef amrRegridTimer_m
void setMaxNumParticles(size_t maxNumPart)
static std::string getTaggingString(int number)
double chargedensity_m
Tagging value for CHARGE_DENSITY.
bool refined_m
Only set to true in AmrObject::initFineLevels().
TaggingCriteria tagging_m
Tagging strategy.
void setChargeDensity(double chargedensity)
IpplTimings::TimerRef amrSolveTimer_m
timer for selfField calculation (used in concrete AmrObject classes)
size_t minNumPart_m
Tagging value for MIN_NUM_PARTICLES.
void setTagging(TaggingCriteria tagging)
size_t maxNumPart_m
Tagging value for MAX_NUM_PARTICLES.
The base class for all OPAL exceptions.