62 for (
unsigned elem_index=0; elem_index<mCellDensityOnCoarseElements.size(); elem_index++)
64 mCellDensityOnCoarseElements[elem_index] = 0.0;
69 cell_iter != mrCellPopulation.End();
72 unsigned elem_index = 0;
73 const ChastePoint<DIM>& r_position_of_cell = mrCellPopulation.GetLocationOfCellCentre(*cell_iter);
75 if (pCellPdeElementMap !=
nullptr)
77 elem_index = (*pCellPdeElementMap)[*cell_iter];
85 bool cell_is_apoptotic = cell_iter->template HasCellProperty<ApoptoticCellProperty>();
87 if (!cell_is_apoptotic)
89 mCellDensityOnCoarseElements[elem_index] += 1.0;
94 c_matrix<double, DIM, DIM> jacobian;
96 for (
unsigned elem_index=0; elem_index<mCellDensityOnCoarseElements.size(); elem_index++)
98 rCoarseMesh.
GetElement(elem_index)->CalculateJacobian(jacobian, det);
99 mCellDensityOnCoarseElements[elem_index] /= rCoarseMesh.
GetElement(elem_index)->GetVolume(det);