Hermes2D
3.0
|
A selector that increases order (i.e., it selects P-refinements only). More...
#include <selector.h>
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. | |
A selector that increases order (i.e., it selects P-refinements only).
Definition at line 31 of file function.h.
Hermes::Hermes2D::RefinementSelectors::POnlySelector< Scalar >::POnlySelector | ( | int | max_order = H2DRS_DEFAULT_ORDER , |
int | order_h_inc = 1 , |
||
int | order_v_inc = 1 |
||
) |
Constructor.
[in] | max_order | A maximum order used by this selector. If it is H2DRS_DEFAULT_ORDER, a maximum supported order is used. |
[in] | order_h_inc | An 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_inc | An 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.
|
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.