#include <FixedRefinement.H>
Public Member Functions | |
FixedRefinement () | |
Null constructor. | |
FixedRefinement (const int &a_maxNumberOfRefinements) | |
Constructor which sets number of refinements. | |
virtual | ~FixedRefinement () |
Destructor. | |
virtual bool | doRefine (IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements) |
Refine a fixed number of times. | |
virtual void | setMaxNumberOfRefinements (const int &a_maxNumberOfRefinements) |
Set the number of refinements. | |
virtual int | getMaxNumberOfRefinements () |
Get the number of refinements. | |
Protected Attributes | |
int | m_maxNumberOfRefinements |
FixedRefinement< dim >::FixedRefinement | ( | ) | [inline] |
Null constructor.
FixedRefinement< dim >::FixedRefinement | ( | const int & | a_maxNumberOfRefinements | ) | [inline] |
Constructor which sets number of refinements.
References FixedRefinement< dim >::setMaxNumberOfRefinements().
FixedRefinement< dim >::~FixedRefinement | ( | ) | [inline, virtual] |
Destructor.
bool FixedRefinement< dim >::doRefine | ( | IndexTM< int, dim > & | a_refineInDir, | |
const CutCellMoments< dim > & | a_ccm, | |||
const int & | a_numberOfRefinements | |||
) | [inline, virtual] |
Refine a fixed number of times.
Refine if the number of refinements already finished is smaller than the max number of refinements.
Reimplemented from RefinementCriterion< dim >.
References dim, and FixedRefinement< dim >::m_maxNumberOfRefinements.
void FixedRefinement< dim >::setMaxNumberOfRefinements | ( | const int & | a_maxNumberOfRefinements | ) | [inline, virtual] |
Set the number of refinements.
References MayDay::Abort(), and FixedRefinement< dim >::m_maxNumberOfRefinements.
Referenced by FixedRefinement< dim >::FixedRefinement().
int FixedRefinement< dim >::getMaxNumberOfRefinements | ( | ) | [inline, virtual] |
int FixedRefinement< dim >::m_maxNumberOfRefinements [protected] |