From: danshapero Date: Tue, 20 Sep 2016 16:20:27 +0000 (-0700) Subject: Added explanatory comment about moving a Triangulation's manifolds X-Git-Tag: v8.5.0-rc1~653^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=401fc8180595e9d4ed6c3e5433c465795912f311;p=dealii.git Added explanatory comment about moving a Triangulation's manifolds --- 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