void ApoptoticCellKiller<SPACE_DIM>::CheckAndLabelCellsForApoptosisOrDeath()
{
    for (typename AbstractCellPopulation<SPACE_DIM>::Iterator cell_iter = this->mpCellPopulation->Begin();
        cell_iter != this->mpCellPopulation->End();
        ++cell_iter)
    {
        CheckAndLabelSingleCellForApoptosis(*cell_iter);
    }
}
void RandomCellKillerInCuboid<DIM>::CheckAndLabelCellsForApoptosisOrDeath()
{
    for (typename AbstractCellPopulation<DIM>::Iterator cell_iter = this->mpCellPopulation->Begin();
         cell_iter != this->mpCellPopulation->End();
         ++cell_iter)
    {
    	//Loop over cells and only consider checking and labelling them for apoptosis if they lie withing the
    	//target region.
    	c_vector<double,DIM> cell_location = this->mpCellPopulation->GetLocationOfCellCentre(*cell_iter);
    	int flag=0;
    	for(int i=0; i<DIM; i++){
    		if(cell_location[i]>mtop_right[i] || cell_location[i]<mbottom_left[i]){
    			flag=1;
    		}
    	}
    	if(flag==0){   //cell is in target region
    		CheckAndLabelSingleCellForApoptosis(*cell_iter);
    	}
    }
}