77 cell_iter != this->mpCellPopulation->End();
80 double x = this->mpCellPopulation->GetLocationOfCellCentre(*cell_iter)[0];
82 if (x > mSloughHeight)
85 this->mpCellPopulation->KillCell(*cell_iter,
"SloughingCellKiller");
93 cell_iter != this->mpCellPopulation->End();
96 c_vector<double, 2> location;
97 location = this->mpCellPopulation->GetLocationOfCellCentre(*cell_iter);
98 double x = location[0];
99 double y = location[1];
101 if ((y>mSloughHeight) || (mSloughSides && ((x<0.0) || (x>mSloughWidth))))
104 this->mpCellPopulation->KillCell(*cell_iter,
"SloughingCellKiller");
111 EXCEPTION(
"SloughingCellKiller is not yet implemented in 3D");