33 #ifndef __H__UG__lib_grid_messages__
34 #define __H__UG__lib_grid_messages__
Serialization of data associated with grid elements.
Definition: serialization.h:186
A message sent along with "GridRefinement" messages.
Definition: lib_grid_messages.h:91
GridMessage_Adaption(GridMessageAdaptionType adaptionType)
Definition: lib_grid_messages.h:93
GridMessageAdaptionType adaption_type() const
Definition: lib_grid_messages.h:101
const GridObjectCollection & affected_elements() const
returns the geometric-object-collection, which holds lists with affected elements.
Definition: lib_grid_messages.h:150
bool step_begins() const
tells whether an adaption step has just been started or has been finished.
Definition: lib_grid_messages.cpp:50
bool global() const
tells whether refinement / coarsening is global (global() == !adaptive())
Definition: lib_grid_messages.cpp:91
GridMessage_Adaption(GridMessageAdaptionType adaptionType, const GridObjectCollection &affectedElements)
Definition: lib_grid_messages.h:96
GridObjectCollection m_affectedElements
Definition: lib_grid_messages.h:154
GridMessageAdaptionType m_adaptionType
Definition: lib_grid_messages.h:153
bool adaptive() const
tells whether refinement / coarsening is adaptive (adaptive() == !global())
Definition: lib_grid_messages.cpp:76
bool adaption_ends() const
tells whether grid adaption has just been started or has been finished.
Definition: lib_grid_messages.cpp:44
bool adaption_begins() const
tells whether grid adaption has just been started or has been finished.
Definition: lib_grid_messages.cpp:38
bool step_ends() const
tells whether an adaption step has just been started or has been finished.
Definition: lib_grid_messages.cpp:63
bool coarsening() const
tells whether a step is a coarsen step
Definition: lib_grid_messages.cpp:119
bool refinement() const
tells whether a step is a refinement step.
Definition: lib_grid_messages.cpp:106
Definition: lib_grid_messages.h:195
int proc_id() const
Definition: lib_grid_messages.h:201
GridMessage_Creation(GridMessageCreationType msg=GMCT_NONE, int procId=-1)
Definition: lib_grid_messages.h:197
GridMessageCreationType m_msg
Definition: lib_grid_messages.h:204
GridMessageCreationType msg() const
Definition: lib_grid_messages.h:200
int m_procId
Definition: lib_grid_messages.h:205
Definition: lib_grid_messages.h:166
GridDataSerializationHandler & serialization_handler() const
Definition: lib_grid_messages.h:176
GridDataSerializationHandler & m_serializationHandler
Definition: lib_grid_messages.h:183
GridMessage_Distribution(GridMessageDistributionType msg, GridDataSerializationHandler &gdsh)
Definition: lib_grid_messages.h:168
GridMessageDistributionType m_msg
Definition: lib_grid_messages.h:182
GridMessageDistributionType msg() const
Definition: lib_grid_messages.h:174
A message sent by the MultiGrid, if something special happened.
Definition: lib_grid_messages.h:51
GridMessage_MultiGridChanged(GridMessageMultiGridChangedType msgType, int numLevels)
Definition: lib_grid_messages.h:53
GridMessageMultiGridChangedType m_msgType
Definition: lib_grid_messages.h:66
int m_numLevels
Definition: lib_grid_messages.h:67
int num_levels_in_grid() const
returns the current number of levels in the multigrid, which did send the message.
Definition: lib_grid_messages.h:63
GridMessageMultiGridChangedType message_type() const
returns the type of the message
Definition: lib_grid_messages.h:60
a helper class that holds a collection of possibly unconnected geometric-objects.
Definition: grid_object_collection.h:96
This is the base class of all messages, which may be passed to callbacks.
Definition: message_hub.h:133
GridMessageCreationType
Instances of this class inform about grid creation (e.g. during load or distribution)
Definition: lib_grid_messages.h:188
@ GMCT_CREATION_STOPS
Definition: lib_grid_messages.h:191
@ GMCT_NONE
Definition: lib_grid_messages.h:189
@ GMCT_CREATION_STARTS
Definition: lib_grid_messages.h:190
GridMessageDistributionType
Instances of this class inform about distribution.
Definition: lib_grid_messages.h:159
@ GMDT_NONE
Definition: lib_grid_messages.h:160
@ GMDT_DISTRIBUTION_STARTS
Definition: lib_grid_messages.h:161
@ GMDT_DISTRIBUTION_STOPS
Definition: lib_grid_messages.h:162
GridMessageAdaptionType
constants which indicate the adaption type in a grid refinement message.
Definition: lib_grid_messages.h:73
@ GMAT_HNODE_COARSENING_ENDS
Definition: lib_grid_messages.h:86
@ GMAT_GLOBAL_REFINEMENT_BEGINS
Definition: lib_grid_messages.h:79
@ GMAT_GLOBAL_COARSENING_ENDS
Definition: lib_grid_messages.h:85
@ GMAT_UNKNOWN
Definition: lib_grid_messages.h:74
@ GMAT_GLOBAL_ADAPTION_ENDS
Definition: lib_grid_messages.h:77
@ GMAT_GLOBAL_COARSENING_BEGINS
Definition: lib_grid_messages.h:83
@ GMAT_HNODE_ADAPTION_ENDS
Definition: lib_grid_messages.h:78
@ GMAT_HNODE_ADAPTION_BEGINS
Definition: lib_grid_messages.h:76
@ GMAT_GLOBAL_REFINEMENT_ENDS
Definition: lib_grid_messages.h:81
@ GMAT_GLOBAL_ADAPTION_BEGINS
Definition: lib_grid_messages.h:75
@ GMAT_HNODE_REFINEMENT_ENDS
Definition: lib_grid_messages.h:82
@ GMAT_HNODE_REFINEMENT_BEGINS
Definition: lib_grid_messages.h:80
@ GMAT_HNODE_COARSENING_BEGINS
Definition: lib_grid_messages.h:84
GridMessageMultiGridChangedType
Definition: lib_grid_messages.h:44
@ GMMGCT_LEVEL_ADDED
Definition: lib_grid_messages.h:45
@ GMMGCT_REMOVED
Definition: lib_grid_messages.h:46