36 #include "T2SwapCellKiller.hpp"
38 template<
unsigned DIM>
45 EXCEPTION(
"A T2SwapCellKiller should only be used together with a VertexBasedCellPopulation.");
49 template<
unsigned DIM>
64 bool recheck_mesh =
true;
65 while (recheck_mesh ==
true)
74 for (
unsigned elem_index = 0; elem_index < element_map.Size(); elem_index++)
76 CellPtr p_cell = this->mpCellPopulation->GetCellUsingLocationIndex(elem_index);
77 if (element_map.IsDeleted(elem_index) && !(p_cell->IsDead()))
80 p_vertex_population->AddCellIdOfT2Swap(p_cell->GetCellId());
91 template<
unsigned DIM>
T2SwapCellKiller(AbstractCellPopulation< DIM > *pCellPopulation)
void OutputCellKillerParameters(out_stream &rParamsFile)
void CheckAndLabelCellsForApoptosisOrDeath()
bool CheckForT2Swaps(VertexElementMap &rElementMap)
unsigned GetNumAllElements() const
#define EXCEPTION(message)
AbstractCellPopulation< SPACE_DIM > * mpCellPopulation
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
virtual void OutputCellKillerParameters(out_stream &rParamsFile)=0
c_vector< double, SPACE_DIM > GetLastT2SwapLocation()