38#ifndef MADNESS_WORLD_MPI_ARCHIVE_H__INCLUDED
39#define MADNESS_WORLD_MPI_ARCHIVE_H__INCLUDED
76 typename std::enable_if< is_trivially_serializable<T>::value,
void >
::type
77 store(
const T* t,
long n)
const {
109 typename std::enable_if< is_trivially_serializable<T>::value,
void >
::type
123 mutable std::vector<unsigned char>
v;
146 typename std::enable_if< is_trivially_serializable<T>::value,
void >
::type
184 mutable std::vector<unsigned char>
v;
205 typename std::enable_if< is_trivially_serializable<T>::value,
void >
::type
208 if (!
var.nbyte_avail()) {
Interface templates for the archives (serialization).
A parallel world class.
Definition world.h:134
Base class for output archive classes.
Definition archive.h:383
Archive allowing buffering, serialization of data, and point-to-point communication between processes...
Definition mpi_archive.h:118
MPIOutputArchive(World &world, const ProcessID &dest, int tag=SafeMPI::MPIAR_TAG)
Construct an archive for sending data via MPI.
Definition mpi_archive.h:132
void close()
Close the archive (i.e., send any data in the buffer).
Definition mpi_archive.h:169
void flush() const
Send all data in the buffer to the destination process.
Definition mpi_archive.h:158
~MPIOutputArchive()
Destructor. Close the archive first, which may entail sending data.
Definition mpi_archive.h:174
World * world
The world.
Definition mpi_archive.h:119
int tag
MPI communication tag.
Definition mpi_archive.h:121
madness::archive::VectorOutputArchive var
Archive for storing the buffer.
Definition mpi_archive.h:124
std::vector< unsigned char > v
The buffer.
Definition mpi_archive.h:123
ProcessID dest
The destination process.
Definition mpi_archive.h:120
std::enable_if< is_trivially_serializable< T >::value, void >::type store(const T *t, long n) const
Serialize data and store it in the buffer.
Definition mpi_archive.h:147
const std::size_t bufsize
Size of the buffer.
Definition mpi_archive.h:122
Archive allowing serialization and point-to-point communication between processes with MPI.
Definition mpi_archive.h:53
World * world
The world.
Definition mpi_archive.h:54
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.
Definition mpi_archive.h:77
int tag
MPI communication tag.
Definition mpi_archive.h:56
MPIRawOutputArchive(World &world, const ProcessID &dest, int tag=SafeMPI::MPIAR_TAG)
Construct an archive for sending data via MPI.
Definition mpi_archive.h:64
ProcessID dest
The destination process.
Definition mpi_archive.h:55
Wraps an archive around an STL vector for output.
Definition vector_archive.h:55
static const int MPIAR_TAG
Definition safempi.h:120
Namespace for I/O tools.
Definition madness.h:49
Namespace for all elements and tools of MADNESS.
Definition DFConvergence.h:9
static const double m
Definition relops.cc:9
static void preamble_load(const MPIInputArchive &ar)
Load the preamble.
Definition mpi_archive.h:280
static void postamble_load(const MPIInputArchive &ar)
Load the postamble.
Definition mpi_archive.h:285
static void postamble_store(const MPIOutputArchive &ar)
Store the postamble.
Definition mpi_archive.h:268
static void preamble_store(const MPIOutputArchive &ar)
Store the preamble.
Definition mpi_archive.h:263
static void preamble_load(const MPIRawInputArchive &ar)
Load the preamble.
Definition mpi_archive.h:246
static void postamble_load(const MPIRawInputArchive &ar)
Load the postamble.
Definition mpi_archive.h:251
static void preamble_store(const MPIRawOutputArchive &ar)
Store the preamble.
Definition mpi_archive.h:229
static void postamble_store(const MPIRawOutputArchive &ar)
Store the postamble.
Definition mpi_archive.h:234
Default implementation of the pre/postamble for type checking.
Definition archive.h:510
Implements an archive wrapping an STL vector.
Declares the World class for the parallel runtime environment.
int ProcessID
Used to clearly identify process number/rank.
Definition worldtypes.h:43