#include <RefinementCriterion.H>
Public Member Functions | |
RefinementCriterion () | |
Null constructor. | |
virtual | ~RefinementCriterion () |
Destructor. | |
virtual bool | doRefine (Vector< int > &a_refineInDir, const int &a_dim, const Vector< Real > &a_dx, const Vector< Vector< Real > > &a_residual)=0 |
Should a cell be subdivided and in which directions. |
RefinementCriterion::RefinementCriterion | ( | ) | [inline] |
Null constructor.
virtual RefinementCriterion::~RefinementCriterion | ( | ) | [inline, virtual] |
Destructor.
virtual bool RefinementCriterion::doRefine | ( | Vector< int > & | a_refineInDir, | |
const int & | a_dim, | |||
const Vector< Real > & | a_dx, | |||
const Vector< Vector< Real > > & | a_residual | |||
) | [pure 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.
Implemented in FacesRefinement, FixedRefinement, NoRefinement, and ZResidualBasedRefinement.
Referenced by CutCellMoments< dim >::computeMoments().