From 401fc8180595e9d4ed6c3e5433c465795912f311 Mon Sep 17 00:00:00 2001 From: danshapero Date: Tue, 20 Sep 2016 09:20:27 -0700 Subject: [PATCH] Added explanatory comment about moving a Triangulation's manifolds --- source/grid/tria.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index cd56e26da7..57a1995413 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -8991,6 +8991,7 @@ Triangulation (const Triangulation &other) #ifdef DEAL_II_WITH_CXX11 + template Triangulation:: Triangulation (Triangulation &&tria) @@ -9030,9 +9031,13 @@ Triangulation::operator= (Triangulation &&tria) faces = std::move(tria.faces); vertices = std::move(tria.vertices); vertices_used = std::move(tria.vertices_used); + + // NOTE: this is actually a copy operation to ensure that the left-hand + // side Triangulation subscribes to the manifold object(s) of the source + // Triangulation. manifold = std::move(tria.manifold); + anisotropic_refinement = tria.anisotropic_refinement; - //check_for_distorted_cells = tria.check_for_distorted_cells; number_cache = tria.number_cache; vertex_to_boundary_id_map_1d = std::move(tria.vertex_to_boundary_id_map_1d); vertex_to_manifold_id_map_1d = std::move(tria.vertex_to_manifold_id_map_1d); @@ -9044,6 +9049,7 @@ Triangulation::operator= (Triangulation &&tria) return *this; } + #endif -- 2.39.5