|
ThunderEgg
1.0.0
|
Represents a neighbor that is at a coarser refinement level. More...
#include <CoarseNbrInfo.h>


Public Member Functions | |
| CoarseNbrInfo ()=default | |
| Construct a new empty CoarseNbrInfo object. | |
| CoarseNbrInfo (int id, Orthant< D > orth_on_coarse) | |
| Construct a new CoarseNbrInfo object. More... | |
| NbrType | getNbrType () const override |
| Get the NbrType. | |
| void | getNbrIds (std::deque< int > &nbr_ids) const override |
| Add to a deque of neighbor ids. | |
| void | getNbrRanks (std::deque< int > &nbr_ranks) const override |
| Add to a deque of neighbor ranks. | |
| void | setGlobalIndexes (const std::map< int, int > &id_to_global_index_map) override |
| Set the local indexes in the NbrInfo objects. More... | |
| void | setLocalIndexes (const std::map< int, int > &id_to_local_index_map) override |
| Set the global indexes in the NbrInfo objects. More... | |
| int | serialize (char *buffer) const override |
| Serialize object into buffer. More... | |
| int | deserialize (char *buffer) override |
| Deserialize an object. More... | |
| std::unique_ptr< NbrInfoBase > | clone () const override |
| get a clone of this object (equivalent to copy constructor) More... | |
Public Member Functions inherited from ThunderEgg::NbrInfoBase | |
| virtual | ~NbrInfoBase ()=default |
| Destroy the NbrInfo object. | |
Public Member Functions inherited from ThunderEgg::Serializable | |
| virtual | ~Serializable ()=default |
| Destroy the Serializable object. | |
Public Attributes | |
| int | rank = 0 |
| The mpi rank that the neighbor resides on. | |
| int | id = 0 |
| The id of the neighbor. | |
| int | local_index = -1 |
| The local index of the neighbor. | |
| int | global_index = -1 |
| The global index of the neighbor. | |
| Orthant< D > | orth_on_coarse |
| The orthant that this patch in relation to the coarser patch's interface. | |
Represents a neighbor that is at a coarser refinement level.
| D | the number of Cartesian dimensions. |
|
inline |
Construct a new CoarseNbrInfo object.
| id | the id of the neighbor |
| orth_on_coarse | The orthant of the neighboring patch's interface that the this patch lies along. |
|
inlineoverridevirtual |
get a clone of this object (equivalent to copy constructor)
Implements ThunderEgg::NbrInfoBase.
|
inlineoverridevirtual |
Deserialize an object.
| buffer | the buffer |
Implements ThunderEgg::Serializable.
|
inlineoverridevirtual |
Serialize object into buffer.
| buffer | the buffer. Can be set to nullptr if you just want the size |
Implements ThunderEgg::Serializable.
|
inlineoverridevirtual |
Set the local indexes in the NbrInfo objects.
| rev_map | map from id to local_index |
Implements ThunderEgg::NbrInfoBase.
|
inlineoverridevirtual |
Set the global indexes in the NbrInfo objects.
| rev_map | map from local_index to global_index |
Implements ThunderEgg::NbrInfoBase.