// levels of the tree:
std::vector<BoundingBox<spacedim>> all_boxes;
all_boxes.reserve(fluid_tria.n_locally_owned_active_cells());
- for (const auto cell : fluid_tria.active_cell_iterators())
+ for (const auto &cell : fluid_tria.active_cell_iterators())
if (cell->is_locally_owned())
all_boxes.emplace_back(cell->bounding_box());
// Vertex renumbering, by dealii type
const std::vector<std::vector<unsigned int>> dealii_to_gmsh = {
- {{{0}},
+ {{0},
{{0, 1}},
{{0, 1, 2}},
{{0, 1, 3, 2}},
f->boundary_id() != numbers::internal_face_boundary_id))
set_of_pairs.insert({f->boundary_id(), f->manifold_id()});
if (dim > 2)
- for (const auto &l : cell->line_indices())
+ for (const auto l : cell->line_indices())
{
const auto &f = cell->line(l);
if (f->manifold_id() != numbers::flat_manifold_id ||
Assert(entity_tag > 0, ExcInternalError());
// Add all vertex ids. Make sure we renumber to gmsh, and we add 1 to the
// global index.
- for (const auto &v : element->vertex_indices())
+ for (const auto v : element->vertex_indices())
element_nodes[entity_tag - 1][type].emplace_back(
element->vertex_index(dealii_to_gmsh[type][v]) + 1);
for (const auto &face : cell->face_iterators())
maybe_add_element(face, face->boundary_id());
if (dim > 2)
- for (const auto &l : cell->line_indices())
+ for (const auto l : cell->line_indices())
maybe_add_element(cell->line(l), cell->line(l)->boundary_id());
}
gmsh::initialize();
gmsh::option::setNumber("General.Verbosity", 0);
gmsh::model::add("Grid generated in deal.II");
- for (const auto p : dim_entity_tag)
+ for (const auto &p : dim_entity_tag)
{
gmsh::model::addDiscreteEntity(p.first, p.second);
gmsh::model::mesh::addNodes(p.first, p.second, nodes, coords);