|
Peano
|
#include <GridVertex.h>

Public Types | |
| enum class | State : int { HangingVertex = 0 , New = 1 , Unrefined = 2 , Refined = 3 , RefinementTriggered = 4 , Refining = 5 , EraseTriggered = 6 , Erasing = 7 , Delete = 8 } |
| enum | ObjectConstruction { NoData } |
Static Public Member Functions | |
| static MPI_Datatype | getForkDatatype () |
| Hands out MPI datatype if we work without the LLVM MPI extension. | |
| static MPI_Datatype | getJoinDatatype () |
| static MPI_Datatype | getBoundaryExchangeDatatype () |
| static MPI_Datatype | getMultiscaleDataExchangeDatatype () |
| static MPI_Datatype | getGlobalCommunciationDatatype () |
| static void | freeForkDatatype () |
| static void | freeJoinDatatype () |
| static void | freeBoundaryExchangeDatatype () |
| static void | freeMultiscaleDataExchangeDatatype () |
| static void | freeGlobalCommunciationDatatype () |
| static void | initDatatype () |
| Wrapper around getDatatype() to trigger lazy evaluation if we use the lazy initialisation. | |
| static void | shutdownDatatype () |
| Free the underlying MPI datatype. | |
| static void | send (const peano4::grid::GridVertex &buffer, int destination, int tag, MPI_Comm communicator) |
| In DaStGen (the first version), I had a non-static version of the send as well as the receive. | |
| static void | receive (peano4::grid::GridVertex &buffer, int source, int tag, MPI_Comm communicator) |
| static void | send (const peano4::grid::GridVertex &buffer, int destination, int tag, std::function< void()> startCommunicationFunctor, std::function< void()> waitFunctor, MPI_Comm communicator) |
| Alternative to the other send() where I trigger a non-blocking send an then invoke the functor until the corresponding MPI_Test tells me that the message went through. | |
| static void | receive (peano4::grid::GridVertex &buffer, int source, int tag, std::function< void()> startCommunicationFunctor, std::function< void()> waitFunctor, MPI_Comm communicator) |
| static void | sendAndPollDanglingMessages (const peano4::grid::GridVertex &message, int destination, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator()) |
| static void | receiveAndPollDanglingMessages (peano4::grid::GridVertex &message, int source, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator()) |
Static Private Attributes | |
| static MPI_Datatype | Datatype |
| Whenever we use LLVM's MPI extension (DaStGe), we rely on lazy initialisation of the datatype. | |
Definition at line 25 of file GridVertex.h.
| Enumerator | |
|---|---|
| NoData | |
Definition at line 173 of file GridVertex.h.
|
strong |
| Enumerator | |
|---|---|
| HangingVertex | |
| New | |
| Unrefined | |
| Refined | |
| RefinementTriggered | |
| Refining | |
| EraseTriggered | |
| Erasing | |
| Delete | |
Definition at line 27 of file GridVertex.h.
| peano4::grid::GridVertex::GridVertex | ( | ) |
Definition at line 39 of file GridVertex.h.
Referenced by GridVertex(), GridVertex(), and operator=().

| peano4::grid::GridVertex::GridVertex | ( | State | __state, |
| tarch::la::Vector< TwoPowerD, int > | __adjacentRanks, | ||
| tarch::la::Vector< TwoPowerD, int > | __backupOfAdjacentRanks, | ||
| bool | __hasBeenAntecessorOfRefinedVertexInPreviousTreeSweep, | ||
| bool | __isAntecessorOfRefinedVertexInCurrentTreeSweep, | ||
| bool | __hasBeenParentOfSubtreeVertexInPreviousTreeSweep, | ||
| bool | __isParentOfSubtreeVertexInCurrentTreeSweep, | ||
| int | __numberOfAdjacentRefinedLocalCells, | ||
| tarch::la::Vector< Dimensions, double > | __x, | ||
| int | __level ) |
| peano4::grid::GridVertex::GridVertex | ( | const GridVertex & | copy | ) |
| peano4::grid::GridVertex::GridVertex | ( | ObjectConstruction | ) |
Definition at line 175 of file GridVertex.h.
References GridVertex().

|
static |
|
static |
|
static |
|
static |
|
static |
| tarch::la::Vector< TwoPowerD, int > peano4::grid::GridVertex::getAdjacentRanks | ( | ) | const |
Definition at line 247 of file GridVertex.h.
References _adjacentRanks, and TwoPowerD.
| int peano4::grid::GridVertex::getAdjacentRanks | ( | int | index | ) | const |
Definition at line 265 of file GridVertex.h.
References _adjacentRanks.
| tarch::la::Vector< TwoPowerD, int > peano4::grid::GridVertex::getBackupOfAdjacentRanks | ( | ) | const |
Definition at line 275 of file GridVertex.h.
References _backupOfAdjacentRanks.
| int peano4::grid::GridVertex::getBackupOfAdjacentRanks | ( | int | index | ) | const |
Definition at line 285 of file GridVertex.h.
References _backupOfAdjacentRanks.
|
static |
|
static |
Hands out MPI datatype if we work without the LLVM MPI extension.
If we work with this additional feature, this is the routine where the lazy initialisation is done and the datatype is also cached.
|
static |
| bool peano4::grid::GridVertex::getHasBeenAntecessorOfRefinedVertexInPreviousTreeSweep | ( | ) | const |
Definition at line 295 of file GridVertex.h.
References _hasBeenAntecessorOfRefinedVertexInPreviousTreeSweep.
| bool peano4::grid::GridVertex::getHasBeenParentOfSubtreeVertexInPreviousTreeSweep | ( | ) | const |
Definition at line 315 of file GridVertex.h.
References _hasBeenParentOfSubtreeVertexInPreviousTreeSweep.
| bool peano4::grid::GridVertex::getIsAntecessorOfRefinedVertexInCurrentTreeSweep | ( | ) | const |
Definition at line 305 of file GridVertex.h.
References _isAntecessorOfRefinedVertexInCurrentTreeSweep.
| bool peano4::grid::GridVertex::getIsParentOfSubtreeVertexInCurrentTreeSweep | ( | ) | const |
Definition at line 325 of file GridVertex.h.
References _isParentOfSubtreeVertexInCurrentTreeSweep.
|
static |
| int peano4::grid::GridVertex::getLevel | ( | ) | const |
Definition at line 377 of file GridVertex.h.
References _level.
|
static |
| int peano4::grid::GridVertex::getNumberOfAdjacentRefinedLocalCells | ( | ) | const |
Definition at line 335 of file GridVertex.h.
References _numberOfAdjacentRefinedLocalCells.
| int peano4::grid::GridVertex::getSenderRank | ( | ) | const |
| peano4::grid::GridVertex::State peano4::grid::GridVertex::getState | ( | ) | const |
Definition at line 237 of file GridVertex.h.
References _state.
|
static |
Wrapper around getDatatype() to trigger lazy evaluation if we use the lazy initialisation.
| GridVertex & peano4::grid::GridVertex::operator= | ( | const GridVertex & | other | ) |
|
static |
|
static |
|
static |
|
static |
In DaStGen (the first version), I had a non-static version of the send as well as the receive.
However, this did not work with newer C++11 versions, as a member function using this as pointer usually doesn't see the vtable while the init sees the object from outside, i.e. including a vtable. So this routine now is basically an alias for a blocking MPI_Send.
|
static |
Alternative to the other send() where I trigger a non-blocking send an then invoke the functor until the corresponding MPI_Test tells me that the message went through.
In systems with heavy MPI usage, this can help to avoid deadlocks.
|
static |
| void peano4::grid::GridVertex::setAdjacentRanks | ( | const tarch::la::Vector< TwoPowerD, int > & | value | ) |
Definition at line 257 of file GridVertex.h.
References _adjacentRanks, and TwoPowerD.
| void peano4::grid::GridVertex::setAdjacentRanks | ( | int | index, |
| int | value ) |
Definition at line 270 of file GridVertex.h.
References _adjacentRanks.
| void peano4::grid::GridVertex::setBackupOfAdjacentRanks | ( | const tarch::la::Vector< TwoPowerD, int > & | value | ) |
Definition at line 280 of file GridVertex.h.
References _backupOfAdjacentRanks.
| void peano4::grid::GridVertex::setBackupOfAdjacentRanks | ( | int | index, |
| int | value ) |
Definition at line 290 of file GridVertex.h.
References _backupOfAdjacentRanks.
| void peano4::grid::GridVertex::setHasBeenAntecessorOfRefinedVertexInPreviousTreeSweep | ( | bool | value | ) |
Definition at line 300 of file GridVertex.h.
References _hasBeenAntecessorOfRefinedVertexInPreviousTreeSweep.
| void peano4::grid::GridVertex::setHasBeenParentOfSubtreeVertexInPreviousTreeSweep | ( | bool | value | ) |
Definition at line 320 of file GridVertex.h.
References _hasBeenParentOfSubtreeVertexInPreviousTreeSweep.
| void peano4::grid::GridVertex::setIsAntecessorOfRefinedVertexInCurrentTreeSweep | ( | bool | value | ) |
Definition at line 310 of file GridVertex.h.
References _isAntecessorOfRefinedVertexInCurrentTreeSweep.
| void peano4::grid::GridVertex::setIsParentOfSubtreeVertexInCurrentTreeSweep | ( | bool | value | ) |
Definition at line 330 of file GridVertex.h.
References _isParentOfSubtreeVertexInCurrentTreeSweep.
| void peano4::grid::GridVertex::setLevel | ( | int | value | ) |
Definition at line 382 of file GridVertex.h.
References _level.
| void peano4::grid::GridVertex::setNumberOfAdjacentRefinedLocalCells | ( | int | value | ) |
Definition at line 340 of file GridVertex.h.
References _numberOfAdjacentRefinedLocalCells.
| void peano4::grid::GridVertex::setState | ( | State | value | ) |
Definition at line 242 of file GridVertex.h.
References _state.
|
static |
Free the underlying MPI datatype.
| std::string peano4::grid::GridVertex::toString | ( | ) | const |
|
private |
Definition at line 201 of file GridVertex.h.
Referenced by getAdjacentRanks(), getAdjacentRanks(), setAdjacentRanks(), and setAdjacentRanks().
|
private |
Definition at line 203 of file GridVertex.h.
Referenced by getBackupOfAdjacentRanks(), getBackupOfAdjacentRanks(), setBackupOfAdjacentRanks(), and setBackupOfAdjacentRanks().
|
private |
Definition at line 204 of file GridVertex.h.
Referenced by getHasBeenAntecessorOfRefinedVertexInPreviousTreeSweep(), and setHasBeenAntecessorOfRefinedVertexInPreviousTreeSweep().
|
private |
Definition at line 206 of file GridVertex.h.
Referenced by getHasBeenParentOfSubtreeVertexInPreviousTreeSweep(), and setHasBeenParentOfSubtreeVertexInPreviousTreeSweep().
|
private |
Definition at line 205 of file GridVertex.h.
Referenced by getIsAntecessorOfRefinedVertexInCurrentTreeSweep(), and setIsAntecessorOfRefinedVertexInCurrentTreeSweep().
|
private |
Definition at line 207 of file GridVertex.h.
Referenced by getIsParentOfSubtreeVertexInCurrentTreeSweep(), and setIsParentOfSubtreeVertexInCurrentTreeSweep().
|
private |
Definition at line 218 of file GridVertex.h.
Referenced by getLevel(), and setLevel().
|
private |
Definition at line 208 of file GridVertex.h.
Referenced by getNumberOfAdjacentRefinedLocalCells(), and setNumberOfAdjacentRefinedLocalCells().
|
private |
Definition at line 222 of file GridVertex.h.
|
private |
Definition at line 196 of file GridVertex.h.
Referenced by getState(), and setState().
|
staticprivate |
Whenever we use LLVM's MPI extension (DaStGe), we rely on lazy initialisation of the datatype.
However, Peano calls init explicitly in most cases. Without the LLVM extension which caches the MPI datatype once constructed, this field stores the type.
Definition at line 231 of file GridVertex.h.