Hermes2D
3.0
|
Public Member Functions | |
DefaultNormCalculator (int component_count) | |
double | calculate_norms (std::vector< MeshFunctionSharedPtr< Scalar > > &solutions) |
Norms calculation. | |
double | calculate_norm (MeshFunctionSharedPtr< Scalar > solution) |
Norms calculation. | |
![]() | |
ErrorCalculator (CalculatedErrorType errorType) | |
void | calculate_errors (std::vector< MeshFunctionSharedPtr< Scalar > > coarse_solutions, std::vector< MeshFunctionSharedPtr< Scalar > > fine_solutions, bool sort_and_store=true) |
void | calculate_errors (MeshFunctionSharedPtr< Scalar > coarse_solution, MeshFunctionSharedPtr< Scalar > fine_solution, bool sort_and_store=true) |
virtual | ~ErrorCalculator () |
Destructor. Deallocates allocated private data. | |
void | add_error_form (NormFormVol< Scalar > *form) |
void | add_error_form (NormFormSurf< Scalar > *form) |
void | add_error_form (NormFormDG< Scalar > *form) |
double | get_element_error_squared (int component, int element_id) const |
Returns a squared error of an element. More... | |
double | get_element_norm_squared (int component, int element_id) const |
double | get_error_squared (int component) const |
double | get_norm_squared (int component) const |
double | get_total_error_squared () const |
double | get_total_norm_squared () const |
int | get_component_count () const |
const ElementReference & | get_element_reference (unsigned int id) const |
A queue of elements which should be processes. The queue had to be filled by the method fill_regular_queue(). | |
MeshFunctionSharedPtr< double > | get_errorMeshFunction (int component=0) |
void | free () |
Frees the data. | |
Additional Inherited Members | |
![]() | |
virtual bool | isOkay () const |
State querying helpers. | |
std::string | getClassName () const |
bool | data_prepared_for_querying () const |
Common check for data querying. | |
void | init_data_storage () |
Initialize the data storage. | |
void | postprocess_error () |
![]() | |
static int | compareElementReference (const void *a, const void *b) |
![]() | |
std::vector < MeshFunctionSharedPtr < Scalar > > | coarse_solutions |
Data. | |
std::vector < MeshFunctionSharedPtr < Scalar > > | fine_solutions |
CalculatedErrorType | errorType |
Absolute / Relative error. | |
ElementReference * | element_references |
A queue of elements which should be processes. The queue had to be filled by the method fill_regular_queue(). | |
int | component_count |
Number of solution components. | |
int | num_act_elems |
A total number of active elements across all provided meshes. | |
double * | errors [H2D_MAX_COMPONENTS] |
Errors of elements. Meaning of the error depeds on the errorType. | |
double * | norms [H2D_MAX_COMPONENTS] |
double | component_errors [H2D_MAX_COMPONENTS] |
double | component_norms [H2D_MAX_COMPONENTS] |
int | element_count [H2D_MAX_COMPONENTS] |
double | errors_squared_sum |
double | norms_squared_sum |
MeshFunctionSharedPtr< double > | errorMeshFunction [H2D_MAX_COMPONENTS] |
Error mesh function - for visualization and other postprocessing of the element-wise error. | |
std::vector< NormFormVol < Scalar > * > | mfvol |
Holds volumetric matrix forms. | |
std::vector< NormFormSurf < Scalar > * > | mfsurf |
Holds surface matrix forms. | |
std::vector< NormFormDG < Scalar > * > | mfDG |
Holds DG matrix forms. | |
bool | elements_stored |
This is for adaptivity, saying that the errors are the correct ones. | |
![]() | |
unsigned char | num_threads_used |
std::string | exceptionMessageCaughtInParallelBlock |
Definition at line 185 of file error_calculator.h.