36 #include "AbstractTargetAreaModifier.hpp"
38 template<
unsigned DIM>
41 mReferenceTargetArea(1.0)
45 template<
unsigned DIM>
50 template<
unsigned DIM>
53 UpdateTargetAreas(rCellPopulation);
56 template<
unsigned DIM>
61 EXCEPTION(
"AbstractTargetAreaModifiers are to be used with a VertexBasedCellPopulation only");
68 UpdateTargetAreas(rCellPopulation);
71 template<
unsigned DIM>
77 for (std::list<CellPtr>::iterator cell_iter = rCellPopulation.
rGetCells().begin();
78 cell_iter != rCellPopulation.
rGetCells().end();
81 UpdateTargetAreaOfCell(*cell_iter);
85 template<
unsigned DIM>
88 return mReferenceTargetArea;
91 template<
unsigned DIM>
94 assert(referenceTargetArea >= 0.0);
95 mReferenceTargetArea = referenceTargetArea;
98 template<
unsigned DIM>
101 *rParamsFile <<
"\t\t\t<ReferenceTargetArea>" << mReferenceTargetArea <<
"</ReferenceTargetArea>\n";
virtual void OutputSimulationModifierParameters(out_stream &rParamsFile)
double GetReferenceTargetArea()
#define EXCEPTION(message)
void SetReferenceTargetArea(double referenceTargetArea)
virtual void OutputSimulationModifierParameters(out_stream &rParamsFile)=0
std::list< CellPtr > & rGetCells()
virtual void UpdateAtEndOfTimeStep(AbstractCellPopulation< DIM, DIM > &rCellPopulation)
virtual ~AbstractTargetAreaModifier()
AbstractTargetAreaModifier()
virtual void SetupSolve(AbstractCellPopulation< DIM, DIM > &rCellPopulation, std::string outputDirectory)
void UpdateTargetAreas(AbstractCellPopulation< DIM, DIM > &rCellPopulation)