36 #ifndef MIXEDDIMENSIONMESH_HPP_
37 #define MIXEDDIMENSIONMESH_HPP_
39 #include "DistributedTetrahedralMesh.hpp"
40 #include "AbstractMeshReader.hpp"
43 #include <boost/serialization/base_object.hpp>
50 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
143 template<
class Archive>
144 void serialize(Archive & archive,
const unsigned int version)
146 archive & boost::serialization::base_object<DistributedTetrahedralMesh<ELEMENT_DIM, SPACE_DIM> >(*this);
178 namespace serialization
183 template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
184 inline void save_construct_data(
190 ar << partition_type;
197 template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
198 inline void load_construct_data(
205 ar >> partition_type;
219 EXCEPTION(
"This archive was written for a different number of processors");
CableElementIterator GetCableElementIteratorEnd() const
unsigned GetNumLocalCableElements() const
void RegisterCableElement(unsigned index)
std::pair< NodeCableIterator, NodeCableIterator > CableRangeAtNode
DistributedTetrahedralMeshPartitionType::type GetPartitionType() const
std::map< unsigned, unsigned > mCableElementsMapping
#define EXCEPTION(message)
void ConstructFromMeshReader(AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader)
std::multimap< const Node< SPACE_DIM > *, Element< 1u, SPACE_DIM > * > mNodeToCablesMapping
CableElementIterator GetCableElementIteratorBegin() const
unsigned mNumCableElements
unsigned GetNumCableElements() const
std::multimap< const Node< SPACE_DIM > *, Element< 1u, SPACE_DIM > * >::iterator NodeCableIterator
bool CalculateDesignatedOwnershipOfCableElement(unsigned globalElementIndex)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
std::vector< Element< 1u, SPACE_DIM > * > mCableElements
MixedDimensionMesh(DistributedTetrahedralMeshPartitionType::type partitioningMethod=DistributedTetrahedralMeshPartitionType::METIS_LIBRARY)
CableRangeAtNode GetCablesAtNode(const Node< SPACE_DIM > *pNode)
friend class boost::serialization::access
void serialize(Archive &archive, const unsigned int version)
Element< 1u, SPACE_DIM > * GetCableElement(unsigned globalElementIndex) const
std::vector< Element< 1, SPACE_DIM > * >::const_iterator CableElementIterator