16 #ifndef __H2D_CANDIDATES_H
17 #define __H2D_CANDIDATES_H
21 #include "refinement_selectors/element_to_refine.h"
43 namespace RefinementSelectors
107 Cand(
const RefinementType split,
const unsigned short order_elem0,
const unsigned short order_elem1 = 0,
const unsigned short order_elem2 = 0,
const unsigned short order_elem3 = 0);
111 unsigned char get_num_elems()
const;
RefinementType split
A refinement, see the enum RefinementType.
HERMES_API bool is_p_aniso(const CandList cand_list)
Returns true if a predefined candidate list may contain candidates with an anisotropic change of orde...
P-candidates only. Hermes::Orders are modified non-uniformly.
H-candidates only. Hermes::Orders are not modified.
HERMES_API const char * get_cand_list_str(const CandList cand_list)
Returns a string representation of a predefined candidate list.
double error
Error of this candidate's sons.
RefinementType
Possible refinements of an element.
HERMES_API bool is_hp(const CandList cand_list)
Returns true if a predefined candidate list may contain candidates that are HP.
Common definitions for Hermes2D.
H-, ANISO- and P-candidates. Hermes::Orders are modified non-uniformly.
HERMES_API const std::string get_refin_str(const RefinementType refin_type)
Returns a string representation of the refinement.
H- and ANISO-candidates only. Hermes::Orders are not modified.
CandList
Predefined list of candidates.
H- and P-candidates only. Hermes::Orders are modified non-uniformly.
H- and P-candidates only. Hermes::Orders are modified uniformly.
unsigned short dofs
An estimated number of DOFs.
No adaptivity. (Used only in modules.)
HERMES_API bool is_p(const CandList cand_list)
Returns true if a predefined candidate list may contain candidates that increase P.
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
HERMES_API int get_refin_sons(const RefinementType refin_type)
Returns a maximum number of sons that will be generated if a given refinement is applied.
#define H2D_MAX_ELEMENT_SONS
Macros.
H-, ANISO- and P-candidates. Hermes::Orders are modified uniformly.
double score
A score of a candidate: the higher the better. If zero, the score is not valid and a candidate should...
P-candidates only. Hermes::Orders are modified uniformly.
HERMES_API bool is_refin_aniso(const RefinementType refin_type)
Retuns true if a given refinement is an ANISO-refinement.