66 for (
unsigned elem_index=0; elem_index<mCellDensityOnCoarseElements.size(); elem_index++)
68 mCellDensityOnCoarseElements[elem_index] = 0.0;
73 cell_iter != mrCellPopulation.End();
76 unsigned elem_index = 0;
77 const ChastePoint<DIM>& r_position_of_cell = mrCellPopulation.GetLocationOfCellCentre(*cell_iter);
79 if (pCellPdeElementMap !=
nullptr)
81 elem_index = (*pCellPdeElementMap)[*cell_iter];
89 bool cell_is_apoptotic = cell_iter->template HasCellProperty<ApoptoticCellProperty>();
91 if (!cell_is_apoptotic)
93 mCellDensityOnCoarseElements[elem_index] += 1.0;
98 c_matrix<double, DIM, DIM> jacobian;
100 for (
unsigned elem_index=0; elem_index<mCellDensityOnCoarseElements.size(); elem_index++)
102 rCoarseMesh.
GetElement(elem_index)->CalculateJacobian(jacobian, det);
103 mCellDensityOnCoarseElements[elem_index] /= rCoarseMesh.
GetElement(elem_index)->GetVolume(det);