36#ifndef DISTRIBUTEDVECTORFACTORY_HPP_
37#define DISTRIBUTEDVECTORFACTORY_HPP_
42#include "DistributedVector.hpp"
114 template<
class Archive>
115 void serialize(Archive & archive,
const unsigned int version)
304namespace serialization
307template<
class Archive>
308inline void save_construct_data(
311 unsigned num_procs, lo, hi, size;
316 size = t->GetProblemSize();
326template<
class Archive>
327inline void load_construct_data(
330 unsigned num_procs, lo, hi, size;
349 EXCEPTION(
"This archive was written for a different number of processors");
352 t->SetOriginalFactory(p_original_factory);
#define EXCEPTION(message)
gcov doesn't like this file...
#define CHASTE_CLASS_EXPORT(T)
static void SetCheckNumberOfProcessesOnLoad(bool checkNumberOfProcessesOnLoad=true)
void SetOriginalFactory(DistributedVectorFactory *pOriginalFactory)
unsigned GetProblemSize() const
static bool msCheckNumberOfProcessesOnLoad
DistributedVectorFactory * GetOriginalFactory()
DistributedVector CreateDistributedVector(Vec vec, bool readOnly=false)
std::vector< unsigned > mGlobalLows
std::vector< unsigned > & rGetGlobalLows()
~DistributedVectorFactory()
void SetFromFactory(DistributedVectorFactory *pFactory)
static bool CheckNumberOfProcessesOnLoad()
friend class boost::serialization::access
void serialize(Archive &archive, const unsigned int version)
DistributedVectorFactory * mpOriginalFactory
bool IsGlobalIndexLocal(unsigned globalIndex)
void CalculateOwnership(Vec vec)
unsigned GetLocalOwnership() const
unsigned GetNumProcs() const