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