11 #ifndef _REFINEMENTCRITERION_H_ 12 #define _REFINEMENTCRITERION_H_ 17 #include "NamespaceHeader.H" 65 const int & a_numberOfRefinements)
68 bool baseRetval =
false;
74 bool exceededMaxNumber =
false;
77 exceededMaxNumber =
true;
80 if (!exceededMaxNumber)
90 bool derivedRetval =
doRefine(a_refineInDir,
92 a_numberOfRefinements);
95 bool retval = baseRetval || derivedRetval;
103 const int & a_numberOfRefinements)
124 if (a_baseMaxNumberOfRefinements < 0)
126 MayDay::Abort(
"FixedRefinement<dim>::setNumberOfRefinements - maxNumberOfRefinements must be >= 0");
158 a_RefinementCriterion.
print(a_out);
162 #include "NamespaceFooter.H" bool getConstrantSuccessStatus()
Definition: RefinementCriterion.H:116
int getBaseMaxNumberOfRefinements()
Definition: RefinementCriterion.H:133
virtual bool doRefine(IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements)
Definition: RefinementCriterion.H:101
bool m_badNormal
Definition: CutCellMoments.H:159
void setConstrantSuccessStatus(const bool &a_status)
Definition: RefinementCriterion.H:110
Definition: RefinementCriterion.H:27
RefinementCriterion(const RefinementCriterion< dim > &a_RefinementCriterion)
Definition: RefinementCriterion.H:46
RefinementCriterion()
Definition: RefinementCriterion.H:32
ostream & operator<<(ostream &a_out, const RefinementCriterion< dim > &a_RefinementCriterion)
Definition: RefinementCriterion.H:155
bool m_constraintsSucceeded
Definition: RefinementCriterion.H:151
int m_baseMaxNumberOfRefinements
Definition: RefinementCriterion.H:152
~RefinementCriterion()
Definition: RefinementCriterion.H:53
void operator=(const RefinementCriterion &a_RefinementCriterion)
Definition: RefinementCriterion.H:144
Definition: CutCellMoments.H:32
virtual bool baseDoRefine(IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements)
Should a cell be subdivided and in which directions.
Definition: RefinementCriterion.H:63
void setBaseMaxNumberOfRefinements(const int &a_baseMaxNumberOfRefinements)
Definition: RefinementCriterion.H:122
void print(ostream &a_out) const
Definition: RefinementCriterion.H:138
RefinementCriterion(const int &a_baseMaxNumberOfRefinements)
Definition: RefinementCriterion.H:39
static void Abort(const char *const a_msg=m_nullString)
Print out message to cerr and exit via abort() (if serial) or MPI_Abort() (if parallel).