Skip to content

Commit

Permalink
Merge pull request #13303 from bangerth/manifold-vs-manifolds
Browse files Browse the repository at this point in the history
Rename Triangulation::manifold to Triangulation::manifolds.
  • Loading branch information
kronbichler committed Jan 28, 2022
2 parents 546de84 + b8984ab commit 3c4c08b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/deal.II/grid/tria.h
Original file line number Diff line number Diff line change
Expand Up @@ -4017,7 +4017,7 @@ class Triangulation : public Subscriptor
* type FlatManifold.
*/
std::map<types::manifold_id, std::unique_ptr<const Manifold<dim, spacedim>>>
manifold;
manifolds;

/**
* Flag indicating whether anisotropic refinement took place.
Expand Down
20 changes: 10 additions & 10 deletions source/grid/tria.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11180,7 +11180,7 @@ Triangulation<dim, spacedim>::Triangulation(
, faces(std::move(tria.faces))
, vertices(std::move(tria.vertices))
, vertices_used(std::move(tria.vertices_used))
, manifold(std::move(tria.manifold))
, manifolds(std::move(tria.manifolds))
, anisotropic_refinement(tria.anisotropic_refinement)
, check_for_distorted_cells(tria.check_for_distorted_cells)
, number_cache(std::move(tria.number_cache))
Expand Down Expand Up @@ -11209,7 +11209,7 @@ Triangulation<dim, spacedim>::operator=(
faces = std::move(tria.faces);
vertices = std::move(tria.vertices);
vertices_used = std::move(tria.vertices_used);
manifold = std::move(tria.manifold);
manifolds = std::move(tria.manifolds);
anisotropic_refinement = tria.anisotropic_refinement;
number_cache = tria.number_cache;
vertex_to_boundary_id_map_1d = std::move(tria.vertex_to_boundary_id_map_1d);
Expand Down Expand Up @@ -11306,7 +11306,7 @@ Triangulation<dim, spacedim>::set_manifold(
{
AssertIndexRange(m_number, numbers::flat_manifold_id);

manifold[m_number] = manifold_object.clone();
manifolds[m_number] = manifold_object.clone();
}


Expand All @@ -11318,15 +11318,15 @@ Triangulation<dim, spacedim>::reset_manifold(const types::manifold_id m_number)
AssertIndexRange(m_number, numbers::flat_manifold_id);

// delete the entry located at number.
manifold.erase(m_number);
manifolds.erase(m_number);
}


template <int dim, int spacedim>
void
Triangulation<dim, spacedim>::reset_all_manifolds()
{
manifold.clear();
manifolds.clear();
}


Expand Down Expand Up @@ -11410,9 +11410,9 @@ Triangulation<dim, spacedim>::get_manifold(
{
// look, if there is a manifold stored at
// manifold_id number.
const auto it = manifold.find(m_number);
const auto it = manifolds.find(m_number);

if (it != manifold.end())
if (it != manifolds.end())
{
// if we have found an entry, return it
return *(it->second);
Expand Down Expand Up @@ -11507,7 +11507,7 @@ Triangulation<dim, spacedim>::copy_triangulation(
faces = std::make_unique<internal::TriangulationImplementation::TriaFaces>(
*other_tria.faces);

for (const auto &p : other_tria.manifold)
for (const auto &p : other_tria.manifolds)
set_manifold(p.first, *p.second);


Expand Down Expand Up @@ -14712,7 +14712,7 @@ Triangulation<dim, spacedim>::clear_despite_subscriptions()
vertices.clear();
vertices_used.clear();

manifold.clear();
manifolds.clear();

number_cache = internal::TriangulationImplementation::NumberCache<dim>();
}
Expand Down Expand Up @@ -16373,7 +16373,7 @@ Triangulation<dim, spacedim>::memory_consumption() const
mem += MemoryConsumption::memory_consumption(*level);
mem += MemoryConsumption::memory_consumption(vertices);
mem += MemoryConsumption::memory_consumption(vertices_used);
mem += sizeof(manifold);
mem += sizeof(manifolds);
mem += sizeof(smooth_grid);
mem += MemoryConsumption::memory_consumption(number_cache);
mem += sizeof(faces);
Expand Down

0 comments on commit 3c4c08b

Please sign in to comment.