Hermes2D  3.0
Hermes::Hermes2D::RefinementSelectors::Cand Class Reference

A candidate. More...

#include <candidates.h>

Public Member Functions

 Cand (const RefinementType split, const unsigned short order_elems[H2D_MAX_ELEMENT_SONS])
 Constructor. More...
 
 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)
 Constructor. More...
 
unsigned char get_num_elems () const
 Returns a number of elements of a candidate. More...
 

Public Attributes

double error
 Error of this candidate's sons.
 
double errors [H2D_MAX_ELEMENT_SONS]
 Error of this candidate's sons.
 
unsigned short dofs
 An estimated number of DOFs.
 
RefinementType split
 A refinement, see the enum RefinementType.
 
unsigned short p [H2D_MAX_ELEMENT_SONS]
 Encoded orders of sons, see ::H2D_MAKE_QUAD_ORDER. In a case of a triangle, the vertical order is equal to the horizontal one.
 
double score
 A score of a candidate: the higher the better. If zero, the score is not valid and a candidate should be ignored. Evaluated in OptimumSelector::select_best_candidate.
 

Detailed Description

A candidate.

Definition at line 80 of file candidates.h.

Constructor & Destructor Documentation

Hermes::Hermes2D::RefinementSelectors::Cand::Cand ( const RefinementType  split,
const unsigned short  order_elems[H2D_MAX_ELEMENT_SONS] 
)

Constructor.

Parameters
[in]splitA refinement, see the enum RefinementTypes.
[in]order_elemsEncoded orders for all element of candidate. If triangle, a vertical order has to be equal to the horizontal one. Unused elements of the array can be ignored.

Definition at line 79 of file candidates.cpp.

Hermes::Hermes2D::RefinementSelectors::Cand::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 
)

Constructor.

Parameters
[in]splitA refinement, see the enum RefinementTypes.
[in]order_elem0Encoded order of the first element of the candidate. If triangle, a vertical order has to be equal to the horizontal one.
[in]order_elem1Encoded order of the second element of the candidate, if any. If triangle, a vertical order has to be equal to the horizontal one.
[in]order_elem2Encoded order of the third element of the candidate, if any. If triangle, a vertical order has to be equal to the horizontal one.
[in]order_elem3Encoded order of the fourth element of the candidate, if any. If triangle, a vertical order has to be equal to the horizontal one.

Definition at line 87 of file candidates.cpp.

Member Function Documentation

unsigned char Hermes::Hermes2D::RefinementSelectors::Cand::get_num_elems ( ) const

Returns a number of elements of a candidate.

Returns
A number of elements of a candidate.

Definition at line 95 of file candidates.cpp.

Referenced by Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::update_cands_info().


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