]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Changed order in tria move ctor test
authordanshapero <shapero.daniel@gmail.com>
Mon, 29 Aug 2016 19:12:12 +0000 (12:12 -0700)
committerdanshapero <shapero.daniel@gmail.com>
Mon, 19 Sep 2016 00:26:02 +0000 (17:26 -0700)
Flipping the order in which the manifold and the Triangulation
are declared in the triangulation move ctor test makes the test pass.
Is this fine or should we be adding move operations for smart pointers
also?

tests/grid/move_constructor.cc

index 724bd9c81857dfc6cc5f280a05e6d76967c603ef..919f1dc69ad6f7e3480b8962b45c206747dbd069 100644 (file)
@@ -67,10 +67,11 @@ void test_hyper_shell()
 {
   deallog << "Dimension: " << dim << std::endl;
 
+  const SphericalManifold<dim> boundary;
+
   Triangulation<dim> tria;
   GridGenerator::hyper_ball(tria);
 
-  const SphericalManifold<dim> boundary;
   tria.set_all_manifold_ids_on_boundary(0);
   tria.set_manifold(0, boundary);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.