36#ifndef PERIODICNODESONLYMESH_HPP_
37#define PERIODICNODESONLYMESH_HPP_
40#include <boost/serialization/base_object.hpp>
42#include "NodesOnlyMesh.hpp"
52template<
unsigned SPACE_DIM>
66 friend class TestPeriodicNodesOnlyMesh;
81 template<
class Archive>
82 void serialize(Archive & archive,
const unsigned int version)
84 archive & boost::serialization::base_object<NodesOnlyMesh<SPACE_DIM> >(*this);
107 virtual void SetUpBoxCollection(
double cutOffLength, c_vector<double, 2*SPACE_DIM> domainSize,
int numLocalRows = PETSC_DECIDE, c_vector<bool,SPACE_DIM> isDimPeriodic = zero_vector<bool>(SPACE_DIM));
119 c_vector<double, SPACE_DIM>
GetVectorFromAtoB(
const c_vector<double, SPACE_DIM>& rLocation1,
const c_vector<double, SPACE_DIM>& rLocation2);
130 double GetWidth(
const unsigned& rDimension)
const;
169namespace serialization
174template<
class Archive,
unsigned SPACE_DIM>
175inline void save_construct_data(
179 const c_vector<double,SPACE_DIM> width = t->GetPeriodicWidths();
180 for (
unsigned i=0; i < SPACE_DIM; i++ )
189template<
class Archive,
unsigned SPACE_DIM>
190inline void load_construct_data(
194 c_vector<double,SPACE_DIM> width;
195 for (
unsigned i=0; i<SPACE_DIM; i++)
197 double current_width;
199 width(i) = current_width;
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
c_vector< double, SPACE_DIM > mWidth
c_vector< bool, SPACE_DIM > mIsDimPeriodic
void SetNode(unsigned nodeIndex, ChastePoint< SPACE_DIM > point, bool concreteMove=false)
void serialize(Archive &archive, const unsigned int version)
unsigned AddNode(Node< SPACE_DIM > *pNewNode)
c_vector< double, SPACE_DIM > GetVectorFromAtoB(const c_vector< double, SPACE_DIM > &rLocation1, const c_vector< double, SPACE_DIM > &rLocation2)
virtual void SetUpBoxCollection(double cutOffLength, c_vector< double, 2 *SPACE_DIM > domainSize, int numLocalRows=PETSC_DECIDE, c_vector< bool, SPACE_DIM > isDimPeriodic=zero_vector< bool >(SPACE_DIM))
c_vector< double, SPACE_DIM > GetPeriodicWidths() const
friend class boost::serialization::access
double GetWidth(const unsigned &rDimension) const