Vector<double> local_dof_values(fluid_fe.dofs_per_cell);
FEPointEvaluation<dim, dim> evaluator(mapping, fluid_fe, update_values);
+ std::vector<Point<dim>> particle_positions;
// We loop over all the local particles. Although this could be achieved
// directly by looping over all the cells, this would force us
// This is achieved using FEPointEvaluation object.
const auto pic = particle_handler.particles_in_cell(cell);
Assert(pic.begin() == particle, ExcInternalError());
- std::vector<Point<dim>> particle_positions;
+ particle_positions.clear();
for (auto &p : pic)
particle_positions.push_back(p.get_reference_location());
Vector<double> local_dof_values(fluid_fe.dofs_per_cell);
FEPointEvaluation<dim, dim> evaluator(mapping, fluid_fe, update_values);
+ std::vector<Point<dim>> particle_positions;
const double this_mpi_process =
static_cast<double>(Utilities::MPI::this_mpi_process(mpi_communicator));
const auto pic = particle_handler.particles_in_cell(cell);
Assert(pic.begin() == particle, ExcInternalError());
- std::vector<Point<dim>> particle_positions;
+ particle_positions.clear();
for (auto &p : pic)
particle_positions.push_back(p.get_reference_location());