Chombo + EB + MF  3.2
Public Member Functions | Protected Attributes | List of all members
FixedRefinement< dim > Class Template Reference

#include <FixedRefinement.H>

Inheritance diagram for FixedRefinement< dim >:
Inheritance graph
[legend]

Public Member Functions

 FixedRefinement ()
 Null constructor. More...
 
 FixedRefinement (const int &a_maxNumberOfRefinements)
 Constructor which sets number of refinements. More...
 
virtual ~FixedRefinement ()
 Destructor. More...
 
virtual bool doRefine (IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements)
 Refine a fixed number of times. More...
 
virtual void setMaxNumberOfRefinements (const int &a_maxNumberOfRefinements)
 Set the number of refinements. More...
 
virtual int getMaxNumberOfRefinements ()
 Get the number of refinements. More...
 
- Public Member Functions inherited from RefinementCriterion< dim >
 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. More...
 
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

int m_maxNumberOfRefinements
 
- Protected Attributes inherited from RefinementCriterion< dim >
bool m_constraintsSucceeded
 
int m_baseMaxNumberOfRefinements
 

Detailed Description

template<int dim>
class FixedRefinement< dim >

This refinement criterion refines a fixed number of levels.

Constructor & Destructor Documentation

◆ FixedRefinement() [1/2]

template<int dim>
FixedRefinement< dim >::FixedRefinement ( )

Null constructor.

◆ FixedRefinement() [2/2]

template<int dim>
FixedRefinement< dim >::FixedRefinement ( const int &  a_maxNumberOfRefinements)

Constructor which sets number of refinements.

◆ ~FixedRefinement()

template<int dim>
FixedRefinement< dim >::~FixedRefinement ( )
virtual

Destructor.

Member Function Documentation

◆ doRefine()

template<int dim>
bool FixedRefinement< dim >::doRefine ( IndexTM< int, dim > &  a_refineInDir,
const CutCellMoments< dim > &  a_ccm,
const int &  a_numberOfRefinements 
)
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.

◆ setMaxNumberOfRefinements()

template<int dim>
void FixedRefinement< dim >::setMaxNumberOfRefinements ( const int &  a_maxNumberOfRefinements)
virtual

Set the number of refinements.

References MayDay::Abort().

◆ getMaxNumberOfRefinements()

template<int dim>
int FixedRefinement< dim >::getMaxNumberOfRefinements ( )
virtual

Get the number of refinements.

Member Data Documentation

◆ m_maxNumberOfRefinements

template<int dim>
int FixedRefinement< dim >::m_maxNumberOfRefinements
protected

The documentation for this class was generated from the following files: