#include <RefinementCriterion.H>
Public Member Functions | |
RefinementCriterion () | |
RefinementCriterion (const int &a_baseMaxNumberOfRefinements) | |
RefinementCriterion (const RefinementCriterion< dim > &a_RefinementCriterion) | |
~RefinementCriterion () | |
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. | |
virtual bool | doRefine (IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements) |
void | setConstrantSuccessStatus (const bool &a_status) |
bool | getConstrantSuccessStatus () |
void | setBaseMaxNumberOfRefinements (const int &a_baseMaxNumberOfRefinements) |
int | getBaseMaxNumberOfRefinements () |
void | print (ostream &a_out) const |
void | operator= (const RefinementCriterion &a_RefinementCriterion) |
Protected Attributes | |
bool | m_constraintsSucceeded |
int | m_baseMaxNumberOfRefinements |
RefinementCriterion< dim >::RefinementCriterion | ( | ) | [inline] |
RefinementCriterion< dim >::RefinementCriterion | ( | const int & | a_baseMaxNumberOfRefinements | ) | [inline] |
RefinementCriterion< dim >::RefinementCriterion | ( | const RefinementCriterion< dim > & | a_RefinementCriterion | ) | [inline] |
RefinementCriterion< dim >::~RefinementCriterion | ( | ) | [inline] |
virtual bool RefinementCriterion< dim >::baseDoRefine | ( | IndexTM< int, dim > & | a_refineInDir, | |
const CutCellMoments< dim > & | a_ccm, | |||
const int & | a_numberOfRefinements | |||
) | [inline, virtual] |
Should a cell be subdivided and in which directions.
This method returns true if the current cell should be subdivided. The subdivsion should occur in all the directions where "a_refineInDir" is non-zero.
References RefinementCriterion< dim >::doRefine(), CutCellMoments< dim >::m_badNormal, RefinementCriterion< dim >::m_baseMaxNumberOfRefinements, and RefinementCriterion< dim >::m_constraintsSucceeded.
Referenced by ComputeCutCellMoments< dim >::computeMoments().
virtual bool RefinementCriterion< dim >::doRefine | ( | IndexTM< int, dim > & | a_refineInDir, | |
const CutCellMoments< dim > & | a_ccm, | |||
const int & | a_numberOfRefinements | |||
) | [inline, virtual] |
Reimplemented in DivNormalRefinement< dim >, FixedRefinement< dim >, and NoRefinement< dim >.
Referenced by RefinementCriterion< dim >::baseDoRefine().
void RefinementCriterion< dim >::setConstrantSuccessStatus | ( | const bool & | a_status | ) | [inline] |
References RefinementCriterion< dim >::m_constraintsSucceeded.
Referenced by ComputeCutCellMoments< dim >::computeMoments().
bool RefinementCriterion< dim >::getConstrantSuccessStatus | ( | ) | [inline] |
void RefinementCriterion< dim >::setBaseMaxNumberOfRefinements | ( | const int & | a_baseMaxNumberOfRefinements | ) | [inline] |
References MayDay::Abort(), and RefinementCriterion< dim >::m_baseMaxNumberOfRefinements.
int RefinementCriterion< dim >::getBaseMaxNumberOfRefinements | ( | ) | [inline] |
void RefinementCriterion< dim >::print | ( | ostream & | a_out | ) | const [inline] |
void RefinementCriterion< dim >::operator= | ( | const RefinementCriterion< dim > & | a_RefinementCriterion | ) | [inline] |
bool RefinementCriterion< dim >::m_constraintsSucceeded [protected] |
Referenced by RefinementCriterion< dim >::baseDoRefine(), RefinementCriterion< dim >::getConstrantSuccessStatus(), RefinementCriterion< dim >::operator=(), RefinementCriterion< dim >::print(), RefinementCriterion< dim >::RefinementCriterion(), and RefinementCriterion< dim >::setConstrantSuccessStatus().
int RefinementCriterion< dim >::m_baseMaxNumberOfRefinements [protected] |