Hermes2D  2.0
Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::Cand Struct Reference

A candidate. More...

#include <optimum_selector.h>

Public Member Functions

 Cand (const int split, const int order_elems[H2D_MAX_ELEMENT_SONS])
 Constructor. More...
 
 Cand (const int split, const int order_elem0, const int order_elem1=0, const int order_elem2=0, const int order_elem3=0)
 Constructor. More...
 
int get_num_elems () const
 Returns a number of elements of a candidate. More...
 

Public Attributes

double error
 An error of this candidate.
 
int dofs
 An estimated number of DOFs.
 
int split
 A refinement, see the enum RefinementType.
 
int 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

template<typename Scalar>
struct Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::Cand

A candidate.

Definition at line 80 of file optimum_selector.h.

Constructor & Destructor Documentation

template<typename Scalar >
Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::Cand::Cand ( const int  split,
const int  order_elems[H2D_MAX_ELEMENT_SONS] 
)
inline

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 90 of file optimum_selector.h.

template<typename Scalar >
Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::Cand::Cand ( const int  split,
const int  order_elem0,
const int  order_elem1 = 0,
const int  order_elem2 = 0,
const int  order_elem3 = 0 
)
inline

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 104 of file optimum_selector.h.

Member Function Documentation

template<typename Scalar >
int Hermes::Hermes2D::RefinementSelectors::OptimumSelector< Scalar >::Cand::get_num_elems ( ) const
inline

Returns a number of elements of a candidate.

Returns
A number of elements of a candidate.

Definition at line 114 of file optimum_selector.h.


The documentation for this struct was generated from the following file: