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);
175 namespace serialization
180 template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
181 inline void save_construct_data(
187 ar << partition_type;
194 template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
195 inline void load_construct_data(
202 ar >> partition_type;
216 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)
gcov doesn't like this file...
Element< 1u, SPACE_DIM > * GetCableElement(unsigned globalElementIndex) const
std::vector< Element< 1, SPACE_DIM > * >::const_iterator CableElementIterator