]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix ambiguous call in mappings/mapping_real_to_unit_q1_singular_02 6623/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 18 May 2018 00:38:37 +0000 (02:38 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 18 May 2018 00:42:05 +0000 (02:42 +0200)
tests/mappings/mapping_real_to_unit_q1_singular_02.cc

index d7fb72116bb3dcd2768702756bd6b54be7810db8..be85c228dcb1e4ee67861da5dc88ead65175aa97 100644 (file)
@@ -33,13 +33,13 @@ void test_real_to_unit_cell()
 
   Triangulation<dim>   triangulation;
 
-  std::vector<Point<dim> > points ({{
-      Point<dim>(-0.29999999999999999, -0.29999999999999999),
-      Point<dim>(-0.050000000000000003, -0.29999999999999999),
-      Point<dim>(-0.29999999999999999, -0.050000000000000003),
-      Point<dim>(-0.049999999999999989, -0.050000000000000003)
-    }
-  });
+  std::vector<Point<dim> > points
+  {
+    Point<dim>(-0.29999999999999999, -0.29999999999999999),
+    Point<dim>(-0.050000000000000003, -0.29999999999999999),
+    Point<dim>(-0.29999999999999999, -0.050000000000000003),
+    Point<dim>(-0.049999999999999989, -0.050000000000000003)
+  };
   std::vector<CellData<dim> > cells(1);
   cells[0].vertices[0] = 0;
   cells[0].vertices[1] = 1;
@@ -55,7 +55,7 @@ void test_real_to_unit_cell()
     {
       mapping.transform_real_to_unit_cell(triangulation.begin(), point);
     }
-  catch (typename Mapping<dim>::ExcTransformationFailed)
+  catch (typename Mapping<dim>::ExcTransformationFailed &)
     {
       deallog << "Transformation for point " << point << " on cell with "
               << "center " << triangulation.begin()->center() << " is not invertible" << std::endl;

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.