1#ifndef MAD_PARALLEL_DC_ARCHIVE_H_INCLUDED
2#define MAD_PARALLEL_DC_ARCHIVE_H_INCLUDED
22 std::vector<unsigned char>
v;
45 typename std::enable_if< madness::is_trivially_serializable<T>::value,
void >
::type
64 std::vector<unsigned char>
v;
74 containerT::const_iterator it = dc.find(key).get();
79 std::cout <<
"key " << key <<
" in world " << subworld.
id()
80 <<
"dc.world " << dc.get_world().id() << std::endl;
91 typename std::enable_if< madness::is_trivially_serializable<T>::value,
void >
::type
140 template <
class keyT,
class valueT>
143 std::vector<unsigned char>
v;
This header should include pretty much everything needed for the parallel runtime.
Makes a distributed container with specified attributes.
Definition worlddc.h:866
A parallel world class.
Definition world.h:132
ProcessID rank() const
Returns the process rank in this World (same as MPI_Comm_rank()).
Definition world.h:318
unsigned long id() const
Definition world.h:313
Base class for output archive classes.
Definition archive.h:382
World * get_world() const
Returns a pointer to the world.
Definition parallel_archive.h:130
Archive & local_archive() const
Returns a reference to the local archive.
Definition parallel_archive.h:248
Definition parallel_dc_archive.h:14
WorldContainer< keyT, std::vector< unsigned char > > containerT
Definition parallel_dc_archive.h:18
ContainerRecordOutputArchive(World &subworld, containerT &dc, const keyT &key)
Definition parallel_dc_archive.h:27
std::vector< unsigned char > v
Definition parallel_dc_archive.h:22
void open()
Definition parallel_dc_archive.h:51
VectorOutputArchive & get_archive()
Definition parallel_dc_archive.h:40
void flush()
Definition parallel_dc_archive.h:53
VectorOutputArchive ar
Definition parallel_dc_archive.h:23
~ContainerRecordOutputArchive()
Definition parallel_dc_archive.h:35
keyT key
Definition parallel_dc_archive.h:20
World & subworld
Definition parallel_dc_archive.h:19
long keyT
Definition parallel_dc_archive.h:16
containerT & dc
Definition parallel_dc_archive.h:21
void close()
Definition parallel_dc_archive.h:55
std::enable_if< madness::is_trivially_serializable< T >::value, void >::type store(const T *t, long n) const
Definition parallel_dc_archive.h:46
An archive for storing local or parallel data wrapping a BinaryFstreamOutputArchive.
Definition parallel_archive.h:321
Wraps an archive around an STL vector for output.
Definition vector_archive.h:55
std::enable_if< madness::is_trivially_serializable< T >::value, void >::type store(const T *t, long n) const
Appends data to the end of the vector.
Definition vector_archive.h:79
auto T(World &world, response_space &f) -> response_space
Definition global_functions.cc:34
static const double v
Definition hatom_sf_dirac.cc:20
#define MADNESS_CHECK(condition)
Check a condition — even in a release build the condition is always evaluated so it can have side eff...
Definition madness_exception.h:182
#define MADNESS_EXCEPTION(msg, value)
Macro for throwing a MADNESS exception.
Definition madness_exception.h:119
Namespace for all elements and tools of MADNESS.
Definition DFParameters.h:10
std::string type(const PairType &n)
Definition PNOParameters.h:18
static void postamble_load(const ContainerRecordInputArchive &ar)
Load the postamble.
Definition parallel_dc_archive.h:136
static void preamble_load(const ContainerRecordInputArchive &ar)
Load the preamble.
Definition parallel_dc_archive.h:131
static void postamble_store(const ContainerRecordOutputArchive &ar)
Store the postamble.
Definition parallel_dc_archive.h:119
static void preamble_store(const ContainerRecordOutputArchive &ar)
Store the preamble.
Definition parallel_dc_archive.h:114
Default implementation of the pre/postamble for type checking.
Definition archive.h:509
static void store(const ParallelOutputArchive< ContainerRecordOutputArchive > &ar, const WorldContainer< keyT, valueT > &t)
Definition parallel_dc_archive.h:142
Default store of an object via serialize(ar, t).
Definition archive.h:611
std::pair< int, double > valueT
Definition test_binsorter.cc:6
int me
Definition test_binsorter.cc:10
Implements an archive wrapping an STL vector.
Implements WorldContainer.
int ProcessID
Used to clearly identify process number/rank.
Definition worldtypes.h:43