ug4
|
#include <error_elem_marking_strategy.h>
Public Types | |
typedef IElementMarkingStrategy< TDomain > | base_type |
Public Types inherited from ug::IElementMarkingStrategy< TDomain > | |
typedef Grid::AttachmentAccessor< elem_type, ug::Attachment< number > > | elem_accessor_type |
typedef domain_traits< dim >::element_type | elem_type |
element type to be marked More... | |
Public Member Functions | |
ExpectedErrorMarkingStrategy (number tol, int max_level, number safetyFactor, number expectedReductionFactor) | |
void | mark (typename base_type::elem_accessor_type &aaError, IRefiner &refiner, ConstSmartPtr< DoFDistribution > dd) |
DEPRECATED: More... | |
void | set_expected_reduction_factor (number expectedReductionFactor) |
void | set_max_level (int max_level) |
void | set_safety_factor (number safetyFactor) |
void | set_tolerance (number tol) |
Public Member Functions inherited from ug::IElementMarkingStrategy< TDomain > | |
number | global_estimated_error () const |
number | global_estimated_error_per_elem_max () const |
number | global_estimated_error_per_elem_min () const |
IElementMarkingStrategy () | |
void | mark (IMultigridElementIndicators< TDomain > &mgElemIndicators, IRefiner &refiner, ConstSmartPtr< DoFDistribution > dd) |
This function marks all elements. More... | |
virtual | ~IElementMarkingStrategy () |
Protected Member Functions | |
void | merge_sorted_lists (std::vector< std::pair< number, int > >::iterator beginFirst, std::vector< std::pair< number, int > >::iterator beginSecond, std::vector< std::pair< number, int > >::iterator end) |
Protected Attributes | |
number | m_expRedFac |
int | m_max_level |
number | m_safety |
number | m_tol |
Protected Attributes inherited from ug::IElementMarkingStrategy< TDomain > | |
number | m_latest_error |
number | m_latest_error_per_elem_max |
number | m_latest_error_per_elem_min |
Additional Inherited Members | |
Static Public Attributes inherited from ug::IElementMarkingStrategy< TDomain > | |
static const int | dim = TDomain::dim |
world dimension More... | |
Refine as many largest-error elements as necessary to reach tolerance. The expected tolerance is calculated using a user-given expected error reduction factor.
typedef IElementMarkingStrategy<TDomain> ug::ExpectedErrorMarkingStrategy< TDomain >::base_type |
|
inline |
|
virtual |
DEPRECATED:
Implements ug::IElementMarkingStrategy< TDomain >.
References pcl::ProcessCommunicator::allreduce(), pcl::ProcessCommunicator::broadcast(), ug::ElementDebugInfo(), pcl::ProcessCommunicator::gatherv(), ug::GetDataPtr(), ug::IRefiner::grid(), ug::IRefiner::mark(), pcl::NumProcs(), p, PCL_DT_INT, PCL_RO_SUM, pcl::ProcRank(), ug::RM_REFINE, pcl::ProcessCommunicator::scatter(), UG_COND_THROW, UG_LOG_ALL_PROCS, and UG_LOGN.
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
Referenced by ug::ExpectedErrorMarkingStrategy< TDomain >::set_max_level().
|
protected |
|
protected |
Referenced by ug::ExpectedErrorMarkingStrategy< TDomain >::set_tolerance().