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)
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");
352 t->SetOriginalFactory(p_original_factory);
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)
for(i=STARTINDEX;i< argc;i++)
unsigned GetNumProcs() const
void CalculateOwnership(Vec vec)