Hermes2D  3.0
Hermes::Hermes2D::ElementToRefine Class Reference

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...
 
ElementToRefineoperator= (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
 

Detailed Description

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.

Constructor & Destructor Documentation

Hermes::Hermes2D::ElementToRefine::ElementToRefine ( int  id,
unsigned short  comp,
bool  space_only = false 
)

Constructor.

Parameters
[in]idAn ID of the element.
[in]compAn index of a component.

Definition at line 46 of file element_to_refine.cpp.

Member Function Documentation

void Hermes::Hermes2D::ElementToRefine::copy_orders ( unsigned short *  dest,
const unsigned short *  src 
)
static
unsigned short Hermes::Hermes2D::ElementToRefine::get_num_sons ( ) const

Returns a number of sons.

Returns
A number of sons of a given refinement.

Definition at line 50 of file element_to_refine.cpp.

Member Data Documentation


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