36 #include "DeltaNotchTrackingModifier.hpp" 37 #include "DeltaNotchSrnModel.hpp" 39 template<
unsigned DIM>
45 template<
unsigned DIM>
50 template<
unsigned DIM>
56 template<
unsigned DIM>
66 template<
unsigned DIM>
74 cell_iter != rCellPopulation.
End();
78 double this_delta = p_model->
GetDelta();
79 double this_notch = p_model->
GetNotch();
82 cell_iter->GetCellData()->SetItem(
"notch", this_notch);
83 cell_iter->GetCellData()->SetItem(
"delta", this_delta);
88 cell_iter != rCellPopulation.
End();
95 if (!neighbour_indices.empty())
97 double mean_delta = 0.0;
98 for (std::set<unsigned>::iterator iter = neighbour_indices.begin();
99 iter != neighbour_indices.end();
103 double this_delta = p_cell->GetCellData()->GetItem(
"delta");
104 mean_delta += this_delta/neighbour_indices.size();
106 cell_iter->GetCellData()->SetItem(
"mean delta", mean_delta);
111 cell_iter->GetCellData()->SetItem(
"mean delta", 0.0);
116 template<
unsigned DIM>
void UpdateCellData(AbstractCellPopulation< DIM, DIM > &rCellPopulation)
virtual CellPtr GetCellUsingLocationIndex(unsigned index)
void OutputSimulationModifierParameters(out_stream &rParamsFile)
virtual void SetupSolve(AbstractCellPopulation< DIM, DIM > &rCellPopulation, std::string outputDirectory)
virtual ~DeltaNotchTrackingModifier()
virtual void OutputSimulationModifierParameters(out_stream &rParamsFile)=0
virtual std::set< unsigned > GetNeighbouringLocationIndices(CellPtr pCell)=0
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
virtual void Update(bool hasHadBirthsOrDeaths=true)=0
virtual void UpdateAtEndOfTimeStep(AbstractCellPopulation< DIM, DIM > &rCellPopulation)
DeltaNotchTrackingModifier()