35#ifndef TOROIDAL2DMESH_HPP_
36#define TOROIDAL2DMESH_HPP_
39#include <boost/serialization/base_object.hpp>
44#include "MutableMesh.hpp"
45#include "TrianglesMeshWriter.hpp"
57 friend class TestToroidal2dMesh;
235 template<
class Archive>
236 void serialize(Archive & archive,
const unsigned int version)
238 archive & boost::serialization::base_object<MutableMesh<2,2> >(*this);
290 c_vector<double, 2>
GetVectorFromAtoB(
const c_vector<double, 2>& rLocation1,
const c_vector<double, 2>& rLocation2);
313 double GetWidth(
const unsigned& rDimension)
const;
337namespace serialization
342template<
class Archive>
343inline void save_construct_data(
344 Archive & ar,
const Toroidal2dMesh * t,
const unsigned int file_version)
347 const double width = t->GetWidth(0);
349 const double depth = t->GetWidth(1);
356template<
class Archive>
357inline void load_construct_data(
358 Archive & ar,
Toroidal2dMesh * t,
const unsigned int file_version)
gcov doesn't like this file...
#define CHASTE_CLASS_EXPORT(T)
std::vector< unsigned > mBottomOriginals
std::map< unsigned, unsigned > mImageToRightOriginalNodeMap
void GenerateVectorsOfElementsStraddlingToroidalPeriodicBoundaries()
std::vector< unsigned > mLeftImages
std::vector< unsigned > mRightOriginals
std::set< unsigned > mBottomPeriodicBoundaryElementIndices
void ReconstructToroidalMesh()
std::map< unsigned, unsigned > mImageToTopOriginalNodeMap
std::set< unsigned > mTopPeriodicBoundaryElementIndices
std::vector< unsigned > mLeftOriginals
unsigned GetCorrespondingToroidalNodeIndex(unsigned nodeIndex)
void SetNode(unsigned index, ChastePoint< 2 > point, bool concreteMove)
void CorrectToroidalNonPeriodicMesh()
void serialize(Archive &archive, const unsigned int version)
bool GetInstanceOfMismatchedBoundaryNodes()
std::set< unsigned > mLeftPeriodicBoundaryElementIndices
std::map< unsigned, unsigned > mImageToBottomOriginalNodeMap
c_vector< double, 2 > GetVectorFromAtoB(const c_vector< double, 2 > &rLocation1, const c_vector< double, 2 > &rLocation2)
std::vector< unsigned > mRightImages
std::set< unsigned > mRightPeriodicBoundaryElementIndices
bool mMismatchedBoundaryElements
std::vector< unsigned > mTopOriginals
unsigned GetCorrespondingCylindricalNodeIndex(unsigned nodeIndex)
void ReconstructCylindricalMesh()
double GetWidth(const unsigned &rDimension) const
std::vector< unsigned > mBottomImages
friend class boost::serialization::access
std::map< unsigned, unsigned > mImageToLeftOriginalNodeMap
unsigned AddNode(Node< 2 > *pNewNode)
void CorrectCylindricalNonPeriodicMesh()
std::vector< unsigned > mTopImages
void GenerateVectorsOfElementsStraddlingCylindricalPeriodicBoundaries()