MADNESS
0.10.1
|
Archive allowing serialization and point-to-point communication between processes with MPI. More...
#include <mpi_archive.h>
Public Member Functions | |
MPIRawOutputArchive (World &world, const ProcessID &dest, int tag=SafeMPI::MPIAR_TAG) | |
Construct an archive for sending data via MPI. More... | |
template<class T > | |
std::enable_if< is_trivially_serializable< T >::value, void >::type | store (const T *t, long n) const |
Serialize data and send it to the destination process. More... | |
Public Member Functions inherited from madness::archive::BaseArchive | |
BaseArchive () | |
Private Attributes | |
ProcessID | dest |
The destination process. More... | |
int | tag |
MPI communication tag. More... | |
World * | world |
The world. More... | |
Additional Inherited Members | |
Public Types inherited from madness::archive::BaseOutputArchive | |
using | is_saving = std::true_type |
Type used by Boost.Serialization to determine if this object is an output archive. More... | |
Public Types inherited from madness::archive::BaseArchive | |
using | is_loading = std::false_type |
Type used by Boost.Serialization to determine if this object is an input archive. More... | |
using | is_saving = std::false_type |
Type used by Boost.Serialization to determine if this object is an output archive. More... | |
Static Public Attributes inherited from madness::archive::BaseOutputArchive | |
static constexpr bool | is_output_archive = true |
Flag to determine if this object is an output archive. More... | |
Static Public Attributes inherited from madness::archive::BaseArchive | |
static constexpr bool | is_archive = true |
Flag to determine if this object is an archive. More... | |
static constexpr bool | is_input_archive = false |
Flag to determine if this object is an input archive. More... | |
static constexpr bool | is_output_archive = false |
Flag to determine if this object is an output archive. More... | |
static constexpr bool | is_parallel_archive = false |
Flag to determine if this object is a parallel archive. More... | |
Archive allowing serialization and point-to-point communication between processes with MPI.
|
inline |
Construct an archive for sending data via MPI.
[in] | world | The world. |
[in] | dest | The destination process. |
[in] | tag | MPI communication tag. |
|
inline |
Serialize data and send it to the destination process.
The function only appears (due to enable_if
) if T
is fundamental.
T | The data type to be sent. |
[in] | t | Pointer to the data to be sent. |
[in] | n | The number of data items to be sent. |
References dest, madness::World::mpi, madness::WorldMpiInterface::Send(), tag, and world.
|
private |
The destination process.
Referenced by store().
|
private |
MPI communication tag.
Referenced by store().
|
mutableprivate |
The world.
Referenced by store().