Hermes2D  3.0
Hermes::Hermes2D::RefinementSelectors::POnlySelector< Scalar > Singleton Reference

A selector that increases order (i.e., it selects P-refinements only). More...

#include <selector.h>

+ Inheritance diagram for Hermes::Hermes2D::RefinementSelectors::POnlySelector< Scalar >:

Public Member Functions

 POnlySelector (int max_order=H2DRS_DEFAULT_ORDER, int order_h_inc=1, int order_v_inc=1)
 Constructor. More...
 

Protected Member Functions

virtual bool select_refinement (Element *element, int quad_order, MeshFunction< Scalar > *rsln, ElementToRefine &refinement)
 Selects a refinement. More...
 
- Protected Member Functions inherited from Hermes::Hermes2D::RefinementSelectors::Selector< Scalar >
 Selector (int min_order=1, int max_order=H2DRS_DEFAULT_ORDER)
 Constructor. More...
 

Friends

template<typename T >
class Adapt
 
template<typename T >
class KellyTypeAdapt
 

Additional Inherited Members

- Protected Attributes inherited from Hermes::Hermes2D::RefinementSelectors::Selector< Scalar >
const int min_order
 A minimum allowed order.
 
const int max_order
 A maximum allowed order.
 

Detailed Description

template<typename Scalar>
singleton Hermes::Hermes2D::RefinementSelectors::POnlySelector< Scalar >

A selector that increases order (i.e., it selects P-refinements only).

Definition at line 31 of file function.h.

Constructor & Destructor Documentation

template<typename Scalar >
Hermes::Hermes2D::RefinementSelectors::POnlySelector< Scalar >::POnlySelector ( int  max_order = H2DRS_DEFAULT_ORDER,
int  order_h_inc = 1,
int  order_v_inc = 1 
)

Constructor.

Parameters
[in]max_orderA maximum order used by this selector. If it is H2DRS_DEFAULT_ORDER, a maximum supported order is used.
[in]order_h_incAn increase of the horizontal order in a quadrilateral and an order in a triangle. The increase has to be greater or equal to 0.
[in]order_v_incAn increase of the vertical order in a quadrilateral. The increase has to be greater or equal to 0.

Definition at line 25 of file selector.cpp.

Member Function Documentation

template<typename Scalar >
bool Hermes::Hermes2D::RefinementSelectors::POnlySelector< Scalar >::select_refinement ( Element element,
int  quad_order,
MeshFunction< Scalar > *  rsln,
ElementToRefine refinement 
)
protectedvirtual

Selects a refinement.

Increases an order ising POnlySelector::order_h_inc and POnlySelector::order_v_inc. Fails if the order cannot be increased due to the maximum order. For details, see Selector::select_refinement.

Implements Hermes::Hermes2D::RefinementSelectors::Selector< Scalar >.

Definition at line 35 of file selector.cpp.


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