36 #include "FixedVertexBasedDivisionRule.hpp" 38 template <
unsigned SPACE_DIM>
41 if (fabs(norm_2(rDivisionVector) - 1.0) > DBL_EPSILON)
43 EXCEPTION(
"Input argument must be a unit vector");
45 mDivisionVector = rDivisionVector;
48 template <
unsigned SPACE_DIM>
53 return mDivisionVector;
56 template <
unsigned SPACE_DIM>
59 return mDivisionVector;
virtual c_vector< double, SPACE_DIM > CalculateCellDivisionVector(CellPtr pParentCell, VertexBasedCellPopulation< SPACE_DIM > &rCellPopulation)
FixedVertexBasedDivisionRule(c_vector< double, SPACE_DIM > &rDivisionVector)
#define EXCEPTION(message)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
const c_vector< double, SPACE_DIM > & rGetDivisionVector() const