65 bool recheck_mesh =
true;
66 while (recheck_mesh ==
true)
69 recheck_mesh =
mesh.CheckForT2Swaps(element_map);
75 for (
unsigned elem_index = 0; elem_index < element_map.Size(); elem_index++)
77 CellPtr p_cell = this->mpCellPopulation->GetCellUsingLocationIndex(elem_index);
78 if (element_map.IsDeleted(elem_index) && !(p_cell->IsDead()))
80 p_vertex_population->AddLocationOfT2Swap(
mesh.GetLastT2SwapLocation());
81 p_vertex_population->AddCellIdOfT2Swap(p_cell->GetCellId());
88 if (p_vertex_population->template HasWriter<CellRemovalLocationsWriter>())
90 std::stringstream removal_info;
92 for (
unsigned i = 0; i < DIM; i++)
94 removal_info <<
mesh.GetLastT2SwapLocation()[i] <<
"\t";
96 removal_info <<
"\t" << p_cell->GetAge() <<
"\t" << p_cell->GetCellId() <<
"\t"
100 p_vertex_population->AddRemovalInformation(removal_info.str());