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;
79 std::cout <<
"key " << key <<
" in world " << subworld.
id()
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.
Iterator for distributed container wraps the local iterator.
Definition: worlddc.h:244
Makes a distributed container with specified attributes.
Definition: worlddc.h:866
bool find(accessor &acc, const keyT &key)
Write access to LOCAL value by key. Returns true if found, false otherwise (always false for remote).
Definition: worlddc.h:987
void replace(const pairT &datum)
Inserts/replaces key+value pair (non-blocking communication if key not local)
Definition: worlddc.h:974
iterator end()
Returns an iterator past the end of the local data (no communication)
Definition: worlddc.h:1084
World & get_world() const
Returns the world associated with this container.
Definition: worlddc.h:955
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
Archive & local_archive() const
Returns a reference to the local archive.
Definition: parallel_archive.h:248
World * get_world() const
Returns a pointer to the world.
Definition: parallel_archive.h:130
Definition: parallel_dc_archive.h:14
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
void flush()
Definition: parallel_dc_archive.h:53
VectorOutputArchive ar
Definition: parallel_dc_archive.h:23
~ContainerRecordOutputArchive()
Definition: parallel_dc_archive.h:35
VectorOutputArchive & get_archive()
Definition: parallel_dc_archive.h:40
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
std::enable_if< madness::is_trivially_serializable< T >::value, void >::type store(const T *t, long n) const
Definition: parallel_dc_archive.h:46
void close()
Definition: parallel_dc_archive.h:55
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:190
#define MADNESS_EXCEPTION(msg, value)
Macro for throwing a MADNESS exception.
Definition: madness_exception.h:119
File holds all helper structures necessary for the CC_Operator and CC2 class.
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