]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a test start with a valid triangulation. 2578/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 7 May 2016 22:21:34 +0000 (18:21 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 8 May 2016 13:29:42 +0000 (09:29 -0400)
The goal of this test is to verify that an exception is thrown when the
mapped cell is distorted: the original triangulation should be valid.

tests/bits/distorted_mapped_cells_01.cc

index 6f88b392cd71ffa9cc39e6c1294c8045d3cf1a3c..6429150f2d870eb05739c5815d026e13ac6c5b67 100644 (file)
@@ -33,6 +33,14 @@ void test()
   // through MappingQEulerian
   Triangulation<dim> tria;
   std::vector<Point<dim> > points (4);
+  points[0][0] = 0.0;
+  points[0][1] = 0.0;
+  points[1][0] = 0.01;
+  points[1][1] = 0.0;
+  points[2][0] = 0.0;
+  points[2][1] = 0.01;
+  points[3][0] = 0.01;
+  points[3][1] = 0.01;
 
   std::vector<CellData<dim> > cells (1);
   cells[0].vertices[0] = 0;
@@ -92,6 +100,3 @@ main()
 
   return 0;
 }
-
-
-

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.