for (auto &cell : dof_handler.active_cell_iterators())
{
if (cell->is_locally_owned())
{
PointHistory<dim> *local_quadrature_points_history =
reinterpret_cast<PointHistory<dim> *>(cell->user_pointer());
for(int q=0; q< quadrature_formula.size(); q++)
{
local_quadrature_points_history[q].HistoryField = 0.0;
local_quadrature_points_history[q].max_Ybar = 0.0;
}
}
}