FixedRefinement< dim > Class Template Reference

#include <FixedRefinement.H>

Inheritance diagram for FixedRefinement< dim >:

Inheritance graph
[legend]

List of all members.


Detailed Description

template<int dim>
class FixedRefinement< dim >

This refinement criterion refines a fixed number of levels.

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

Constructor & Destructor Documentation

template<int dim>
FixedRefinement< dim >::FixedRefinement (  )  [inline]

Null constructor.

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

Constructor which sets number of refinements.

References FixedRefinement< dim >::setMaxNumberOfRefinements().

template<int dim>
FixedRefinement< dim >::~FixedRefinement (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<int dim>
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.

template<int dim>
void FixedRefinement< dim >::setMaxNumberOfRefinements ( const int &  a_maxNumberOfRefinements  )  [inline, virtual]

template<int dim>
int FixedRefinement< dim >::getMaxNumberOfRefinements (  )  [inline, virtual]

Get the number of refinements.

References FixedRefinement< dim >::m_maxNumberOfRefinements.


Member Data Documentation

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


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

Generated on Fri Apr 28 04:03:51 2017 for Chombo + EB by  doxygen 1.5.5