ug4
|
A message sent along with "GridRefinement" messages. More...
#include <lib_grid_messages.h>
Public Member Functions | |
GridMessageAdaptionType | adaption_type () const |
bool | adaptive () const |
tells whether refinement / coarsening is adaptive (adaptive() == !global()) More... | |
const GridObjectCollection & | affected_elements () const |
returns the geometric-object-collection, which holds lists with affected elements. More... | |
bool | coarsening () const |
tells whether a step is a coarsen step More... | |
bool | global () const |
tells whether refinement / coarsening is global (global() == !adaptive()) More... | |
GridMessage_Adaption (GridMessageAdaptionType adaptionType) | |
GridMessage_Adaption (GridMessageAdaptionType adaptionType, const GridObjectCollection &affectedElements) | |
bool | refinement () const |
tells whether a step is a refinement step. More... | |
bool | adaption_begins () const |
tells whether grid adaption has just been started or has been finished. More... | |
bool | adaption_ends () const |
tells whether grid adaption has just been started or has been finished. More... | |
bool | step_begins () const |
tells whether an adaption step has just been started or has been finished. More... | |
bool | step_ends () const |
tells whether an adaption step has just been started or has been finished. More... | |
Protected Attributes | |
GridMessageAdaptionType | m_adaptionType |
GridObjectCollection | m_affectedElements |
A message sent along with "GridRefinement" messages.
|
inline |
|
inline |
bool ug::GridMessage_Adaption::adaption_begins | ( | ) | const |
tells whether grid adaption has just been started or has been finished.
Note that begins and ends may both be false. An adaption consists of multiple steps.
References ug::GMAT_GLOBAL_ADAPTION_BEGINS, ug::GMAT_HNODE_ADAPTION_BEGINS, and m_adaptionType.
Referenced by ug::IDomain< TGrid, TSubsetHandler >::grid_adaption_callback(), ug::IApproximationSpace::grid_changed_callback(), and ug::GridFunction< TDomain, TAlgebra >::grid_changed_callback().
bool ug::GridMessage_Adaption::adaption_ends | ( | ) | const |
tells whether grid adaption has just been started or has been finished.
Note that begins and ends may both be false. An adaption consists of multiple steps.
References ug::GMAT_GLOBAL_ADAPTION_ENDS, ug::GMAT_HNODE_ADAPTION_ENDS, and m_adaptionType.
Referenced by ug::IDomain< TGrid, TSubsetHandler >::grid_adaption_callback(), ug::DegeneratedLayerManager< dim >::grid_adaption_callback(), ug::IApproximationSpace::grid_changed_callback(), and ug::GridFunction< TDomain, TAlgebra >::grid_changed_callback().
|
inline |
References m_adaptionType.
bool ug::GridMessage_Adaption::adaptive | ( | ) | const |
tells whether refinement / coarsening is adaptive (adaptive() == !global())
References ug::GMAT_HNODE_ADAPTION_BEGINS, ug::GMAT_HNODE_ADAPTION_ENDS, ug::GMAT_HNODE_COARSENING_BEGINS, ug::GMAT_HNODE_COARSENING_ENDS, ug::GMAT_HNODE_REFINEMENT_BEGINS, ug::GMAT_HNODE_REFINEMENT_ENDS, and m_adaptionType.
|
inline |
returns the geometric-object-collection, which holds lists with affected elements.
For all other adaption types, the geometric-object-collection should be empty and should be ignored.
References m_affectedElements.
Referenced by ug::AdaptionSurfaceGridFunction< TDomain >::prolongate(), and ug::AdaptionSurfaceGridFunction< TDomain >::select_parents().
bool ug::GridMessage_Adaption::coarsening | ( | ) | const |
tells whether a step is a coarsen step
This is always false if adaption_begins() or adaption_ends() returns true
References ug::GMAT_GLOBAL_COARSENING_BEGINS, ug::GMAT_GLOBAL_COARSENING_ENDS, ug::GMAT_HNODE_COARSENING_BEGINS, ug::GMAT_HNODE_COARSENING_ENDS, and m_adaptionType.
Referenced by ug::GridFunction< TDomain, TAlgebra >::grid_changed_callback().
bool ug::GridMessage_Adaption::global | ( | ) | const |
tells whether refinement / coarsening is global (global() == !adaptive())
References ug::GMAT_GLOBAL_ADAPTION_BEGINS, ug::GMAT_GLOBAL_ADAPTION_ENDS, ug::GMAT_GLOBAL_COARSENING_BEGINS, ug::GMAT_GLOBAL_COARSENING_ENDS, ug::GMAT_GLOBAL_REFINEMENT_BEGINS, ug::GMAT_GLOBAL_REFINEMENT_ENDS, and m_adaptionType.
bool ug::GridMessage_Adaption::refinement | ( | ) | const |
tells whether a step is a refinement step.
This is always false if adaption_begins() or adaption_ends() returns true
References ug::GMAT_GLOBAL_REFINEMENT_BEGINS, ug::GMAT_GLOBAL_REFINEMENT_ENDS, ug::GMAT_HNODE_REFINEMENT_BEGINS, ug::GMAT_HNODE_REFINEMENT_ENDS, and m_adaptionType.
Referenced by ug::GridFunction< TDomain, TAlgebra >::grid_changed_callback().
bool ug::GridMessage_Adaption::step_begins | ( | ) | const |
tells whether an adaption step has just been started or has been finished.
Note that both may be false. An adaption consists of multiple adaption steps.
References ug::GMAT_GLOBAL_COARSENING_BEGINS, ug::GMAT_GLOBAL_REFINEMENT_BEGINS, ug::GMAT_HNODE_COARSENING_BEGINS, ug::GMAT_HNODE_REFINEMENT_BEGINS, and m_adaptionType.
Referenced by ug::GridFunction< TDomain, TAlgebra >::grid_changed_callback().
bool ug::GridMessage_Adaption::step_ends | ( | ) | const |
tells whether an adaption step has just been started or has been finished.
Note that both may be false. An adaption consists of multiple adaption steps.
References ug::GMAT_GLOBAL_COARSENING_ENDS, ug::GMAT_GLOBAL_REFINEMENT_ENDS, ug::GMAT_HNODE_COARSENING_ENDS, ug::GMAT_HNODE_REFINEMENT_ENDS, and m_adaptionType.
Referenced by ug::GridFunction< TDomain, TAlgebra >::grid_changed_callback().
|
protected |
Referenced by adaption_begins(), adaption_ends(), adaption_type(), adaptive(), coarsening(), global(), refinement(), step_begins(), and step_ends().
|
protected |
Referenced by affected_elements().