Hermes2D
3.0
|
A refinement record. More...
#include <element_to_refine.h>
Public Member Functions | |
ElementToRefine () | |
Constructor. Creates an invalid refinement. | |
ElementToRefine (int id, unsigned short comp, bool space_only=false) | |
Constructor. More... | |
ElementToRefine & | operator= (const ElementToRefine &orig) |
Assignment operator. | |
unsigned short | get_num_sons () const |
Returns a number of sons. More... | |
Static Public Member Functions | |
static void | copy_orders (unsigned short *dest, const unsigned short *src) |
Copies array of orders. More... | |
static void | copy_errors (double *dest, const double *src) |
Public Attributes | |
bool | valid |
Validity info. | |
bool | space_only |
For refinement of Space only for the case when mesh is shared. | |
int | id |
An ID of the element. | |
unsigned short | comp |
An index of the component. | |
RefinementType | split |
Proposed refinement. Possible values are defined in the enum RefinementType. | |
unsigned short | refinement_polynomial_order [H2D_MAX_ELEMENT_SONS] |
Encoded orders of sons. | |
unsigned short | best_refinement_polynomial_order_type [4][H2D_MAX_ELEMENT_SONS] |
double | errors [H2D_MAX_ELEMENT_SONS] |
Error of the selected candidate. | |
Friends | |
template<typename T > | |
class | Adapt |
template<typename T , typename S > | |
class | AdaptSolver |
A refinement record.
Except the attribute ElementToRefine::q, the class is able to dump its content to a stringstream in a human readable form, see operator<<(std::ostream& stream, const ElementToRefine& elem_ref).
Definition at line 40 of file element_to_refine.h.
Hermes::Hermes2D::ElementToRefine::ElementToRefine | ( | int | id, |
unsigned short | comp, | ||
bool | space_only = false |
||
) |
Constructor.
[in] | id | An ID of the element. |
[in] | comp | An index of a component. |
Definition at line 46 of file element_to_refine.cpp.
|
static |
Copies array of orders.
The length of the array is defubed by H2D_MAX_ELEMENT_SONS.
[in] | dest | A destination array. |
[in] | src | A source arrapy. |
Definition at line 55 of file element_to_refine.cpp.
Referenced by Hermes::Hermes2D::Adapt< Scalar >::fix_shared_mesh_refinements(), operator=(), Hermes::Hermes2D::RefinementSelectors::HOnlySelector< Scalar >::select_refinement(), and Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::select_refinement().
unsigned short Hermes::Hermes2D::ElementToRefine::get_num_sons | ( | ) | const |
Returns a number of sons.
Definition at line 50 of file element_to_refine.cpp.
unsigned short Hermes::Hermes2D::ElementToRefine::best_refinement_polynomial_order_type[4][H2D_MAX_ELEMENT_SONS] |
Encoded orders of the best refinement of a certaint type. Indexed by enum RefinementType.
Definition at line 68 of file element_to_refine.h.
Referenced by Hermes::Hermes2D::Adapt< Scalar >::fix_shared_mesh_refinements(), operator=(), Hermes::Hermes2D::RefinementSelectors::HOnlySelector< Scalar >::select_refinement(), Hermes::Hermes2D::RefinementSelectors::POnlySelector< Scalar >::select_refinement(), and Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::select_refinement().