11 #ifndef _FIXEDREFINEMENTIMPLEM_H_ 12 #define _FIXEDREFINEMENTIMPLEM_H_ 16 #include "NamespaceHeader.H" 24 setMaxNumberOfRefinements(a_maxNumberOfRefinements);
33 const int & a_numberOfRefinements)
37 if (a_numberOfRefinements < m_maxNumberOfRefinements)
41 for (
int idir = 0; idir <
dim; idir++)
43 a_refineInDir[idir] = 1;
52 if (a_maxNumberOfRefinements < 0)
54 MayDay::Abort(
"FixedRefinement<dim>::setNumberOfRefinements - maxNumberOfRefinements must be >= 0");
57 m_maxNumberOfRefinements = a_maxNumberOfRefinements;
62 return m_maxNumberOfRefinements;
65 #include "NamespaceFooter.H" FixedRefinement()
Null constructor.
Definition: FixedRefinementImplem.H:18
virtual bool doRefine(IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements)
Refine a fixed number of times.
Definition: FixedRefinementImplem.H:31
virtual int getMaxNumberOfRefinements()
Get the number of refinements.
Definition: FixedRefinementImplem.H:60
virtual void setMaxNumberOfRefinements(const int &a_maxNumberOfRefinements)
Set the number of refinements.
Definition: FixedRefinementImplem.H:50
int dim
Definition: EBInterface.H:146
Definition: CutCellMoments.H:32
virtual ~FixedRefinement()
Destructor.
Definition: FixedRefinementImplem.H:27
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).