38 , chargedensity_m(chargedensity)
42 , amrSolveTimer_m(
IpplTimings::getTimer(
"AMR solve"))
43 , amrRegridTimer_m(
IpplTimings::getTimer(
"AMR regrid"))
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)
void setMaxNumParticles(size_t maxNumPart)
static std::string getTaggingString(int number)
void setTagging(TaggingCriteria tagging)
double scaling_m
Scaling factor for tagging [0, 1].
TaggingCriteria
Methods for tagging cells for refinement.
size_t minNumPart_m
Tagging value for MIN_NUM_PARTICLES.
The base class for all OPAL exceptions.
TaggingCriteria tagging_m
Tagging strategy.
void setChargeDensity(double chargedensity)
const bool & isRefined() const
double chargedensity_m
Tagging value for CHARGE_DENSITY.
void setScalingFactor(double scaling)
size_t maxNumPart_m
Tagging value for MAX_NUM_PARTICLES.
constexpr double e
The value of .
bool refined_m
Only set to true in AmrObject::initFineLevels()