#include <GridControlEvent.h>
|
| | GridControlEvent () |
| |
| | GridControlEvent (RefinementControl __refinementControl, tarch::la::Vector< Dimensions, double > __offset, tarch::la::Vector< Dimensions, double > __width, tarch::la::Vector< Dimensions, double > __h) |
| |
| peano4::grid::GridControlEvent::RefinementControl | getRefinementControl () const |
| |
| void | setRefinementControl (RefinementControl value) |
| |
| tarch::la::Vector< Dimensions, double > | getOffset () const |
| |
| void | setOffset (const tarch::la::Vector< Dimensions, double > &value) |
| |
| double | getOffset (int index) const |
| |
| void | setOffset (int index, double value) |
| |
| tarch::la::Vector< Dimensions, double > | getWidth () const |
| |
| void | setWidth (const tarch::la::Vector< Dimensions, double > &value) |
| |
| double | getWidth (int index) const |
| |
| void | setWidth (int index, double value) |
| |
| tarch::la::Vector< Dimensions, double > | getH () const |
| |
| void | setH (const tarch::la::Vector< Dimensions, double > &value) |
| |
| double | getH (int index) const |
| |
| void | setH (int index, double value) |
| |
| | GridControlEvent (const GridControlEvent ©)=default |
| |
| int | getSenderRank () const |
| |
| | GridControlEvent (ObjectConstruction) |
| |
| std::string | toString () const |
| |
|
| 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::GridControlEvent &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::GridControlEvent &buffer, int source, int tag, MPI_Comm communicator) |
| |
| static void | send (const peano4::grid::GridControlEvent &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::GridControlEvent &buffer, int source, int tag, std::function< void()> startCommunicationFunctor, std::function< void()> waitFunctor, MPI_Comm communicator) |
| |
| static void | sendAndPollDanglingMessages (const peano4::grid::GridControlEvent &message, int destination, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator()) |
| |
| static void | receiveAndPollDanglingMessages (peano4::grid::GridControlEvent &message, int source, int tag, MPI_Comm communicator=tarch::mpi::Rank::getInstance().getCommunicator()) |
| |
|
| static MPI_Datatype | Datatype |
| | Whenever we use LLVM's MPI extension (DaStGe), we rely on lazy initialisation of the datatype.
|
| |
Definition at line 34 of file GridControlEvent.h.
◆ ObjectConstruction
◆ RefinementControl
◆ GridControlEvent() [1/4]
| peano4::grid::GridControlEvent::GridControlEvent |
( |
| ) |
|
◆ GridControlEvent() [2/4]
◆ GridControlEvent() [3/4]
| peano4::grid::GridControlEvent::GridControlEvent |
( |
const GridControlEvent & | copy | ) |
|
|
default |
◆ GridControlEvent() [4/4]
◆ freeBoundaryExchangeDatatype()
| static void peano4::grid::GridControlEvent::freeBoundaryExchangeDatatype |
( |
| ) |
|
|
static |
◆ freeForkDatatype()
| static void peano4::grid::GridControlEvent::freeForkDatatype |
( |
| ) |
|
|
static |
◆ freeGlobalCommunciationDatatype()
| static void peano4::grid::GridControlEvent::freeGlobalCommunciationDatatype |
( |
| ) |
|
|
static |
◆ freeJoinDatatype()
| static void peano4::grid::GridControlEvent::freeJoinDatatype |
( |
| ) |
|
|
static |
◆ freeMultiscaleDataExchangeDatatype()
| static void peano4::grid::GridControlEvent::freeMultiscaleDataExchangeDatatype |
( |
| ) |
|
|
static |
◆ getBoundaryExchangeDatatype()
| static MPI_Datatype peano4::grid::GridControlEvent::getBoundaryExchangeDatatype |
( |
| ) |
|
|
static |
◆ getForkDatatype()
| static MPI_Datatype peano4::grid::GridControlEvent::getForkDatatype |
( |
| ) |
|
|
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.
◆ getGlobalCommunciationDatatype()
| static MPI_Datatype peano4::grid::GridControlEvent::getGlobalCommunciationDatatype |
( |
| ) |
|
|
static |
◆ getH() [1/2]
| tarch::la::Vector< Dimensions, double > peano4::grid::GridControlEvent::getH |
( |
| ) |
const |
◆ getH() [2/2]
| double peano4::grid::GridControlEvent::getH |
( |
int | index | ) |
const |
◆ getJoinDatatype()
| static MPI_Datatype peano4::grid::GridControlEvent::getJoinDatatype |
( |
| ) |
|
|
static |
◆ getMultiscaleDataExchangeDatatype()
| static MPI_Datatype peano4::grid::GridControlEvent::getMultiscaleDataExchangeDatatype |
( |
| ) |
|
|
static |
◆ getOffset() [1/2]
| tarch::la::Vector< Dimensions, double > peano4::grid::GridControlEvent::getOffset |
( |
| ) |
const |
◆ getOffset() [2/2]
| double peano4::grid::GridControlEvent::getOffset |
( |
int | index | ) |
const |
◆ getRefinementControl()
◆ getSenderRank()
| int peano4::grid::GridControlEvent::getSenderRank |
( |
| ) |
const |
- Returns
- The rank of the sender of an object. It only make ssense to call this routine after you've invoked receive with MPI_ANY_SOURCE.
◆ getWidth() [1/2]
| tarch::la::Vector< Dimensions, double > peano4::grid::GridControlEvent::getWidth |
( |
| ) |
const |
◆ getWidth() [2/2]
| double peano4::grid::GridControlEvent::getWidth |
( |
int | index | ) |
const |
◆ initDatatype()
| static void peano4::grid::GridControlEvent::initDatatype |
( |
| ) |
|
|
static |
Wrapper around getDatatype() to trigger lazy evaluation if we use the lazy initialisation.
◆ receive() [1/2]
◆ receive() [2/2]
| static void peano4::grid::GridControlEvent::receive |
( |
peano4::grid::GridControlEvent & | buffer, |
|
|
int | source, |
|
|
int | tag, |
|
|
std::function< void()> | startCommunicationFunctor, |
|
|
std::function< void()> | waitFunctor, |
|
|
MPI_Comm | communicator ) |
|
static |
◆ receiveAndPollDanglingMessages()
◆ send() [1/2]
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.
◆ send() [2/2]
| static void peano4::grid::GridControlEvent::send |
( |
const peano4::grid::GridControlEvent & | buffer, |
|
|
int | destination, |
|
|
int | tag, |
|
|
std::function< void()> | startCommunicationFunctor, |
|
|
std::function< void()> | waitFunctor, |
|
|
MPI_Comm | communicator ) |
|
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.
◆ sendAndPollDanglingMessages()
◆ setH() [1/2]
| void peano4::grid::GridControlEvent::setH |
( |
const tarch::la::Vector< Dimensions, double > & | value | ) |
|
◆ setH() [2/2]
| void peano4::grid::GridControlEvent::setH |
( |
int | index, |
|
|
double | value ) |
◆ setOffset() [1/2]
| void peano4::grid::GridControlEvent::setOffset |
( |
const tarch::la::Vector< Dimensions, double > & | value | ) |
|
◆ setOffset() [2/2]
| void peano4::grid::GridControlEvent::setOffset |
( |
int | index, |
|
|
double | value ) |
◆ setRefinementControl()
◆ setWidth() [1/2]
| void peano4::grid::GridControlEvent::setWidth |
( |
const tarch::la::Vector< Dimensions, double > & | value | ) |
|
◆ setWidth() [2/2]
| void peano4::grid::GridControlEvent::setWidth |
( |
int | index, |
|
|
double | value ) |
◆ shutdownDatatype()
| static void peano4::grid::GridControlEvent::shutdownDatatype |
( |
| ) |
|
|
static |
Free the underlying MPI datatype.
◆ toString()
| std::string peano4::grid::GridControlEvent::toString |
( |
| ) |
const |
◆ _h
◆ _offset
◆ _refinementControl
◆ _senderDestinationRank
| int peano4::grid::GridControlEvent::_senderDestinationRank |
|
private |
◆ _width
◆ Datatype
| MPI_Datatype peano4::grid::GridControlEvent::Datatype |
|
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 167 of file GridControlEvent.h.
The documentation for this struct was generated from the following file: