]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New tests, finally finished.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Oct 2003 17:20:53 +0000 (17:20 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Oct 2003 17:20:53 +0000 (17:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@8179 0785d39b-7218-0410-832d-ea1e28bc413d

12 files changed:
tests/bits/find_cell_1.cc
tests/bits/find_cell_2.cc
tests/bits/find_cell_3.cc
tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_1.output [new file with mode: 0644]
tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_2.output [new file with mode: 0644]
tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_3.output [new file with mode: 0644]
tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_1.output [new file with mode: 0644]
tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_2.output [new file with mode: 0644]
tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_3.output [new file with mode: 0644]
tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_1.output [new file with mode: 0644]
tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_2.output [new file with mode: 0644]
tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_3.output [new file with mode: 0644]

index a838942352f4fd84f7b517c11602db4a099f0760..4755c31144a66116227fe69e2aac140115ccdbce 100644 (file)
 
 void check (Triangulation<2> &tria)
 {
+  Point<2> p (1./3., 1./2.);
+  
   Triangulation<2>::active_cell_iterator cell
-    = GridTools::find_active_cell_around_point (tria,
-                                                Point<2>(1./3., 1./2.));
+    = GridTools::find_active_cell_around_point (tria, p);
 
   deallog << cell << std::endl;
   for (unsigned int v=0; v<GeometryInfo<2>::vertices_per_cell; ++v)
     deallog << "<" << cell->vertex(v) << "> ";
   deallog << std::endl;
+
+  Assert (p.distance (cell->center()) < cell->diameter()/2,
+         ExcInternalError());
 }
 
 
index 5efdc8857dc6a7af7285085015ff5b495c46e839..be66e0547dc84950b16cabcbb6e36c5c9a838369 100644 (file)
 
 void check (Triangulation<3> &tria)
 {
+  Point<3> p(1./3.,1./2.,1./5.);
+  
   Triangulation<3>::active_cell_iterator cell
-    = GridTools::find_active_cell_around_point (tria,
-                                                Point<3>(1./3.,
-                                                         1./2.,
-                                                         2./3.));
+    = GridTools::find_active_cell_around_point (tria, p);
 
   deallog << cell << std::endl;
   for (unsigned int v=0; v<GeometryInfo<3>::vertices_per_cell; ++v)
     deallog << "<" << cell->vertex(v) << "> ";
   deallog << std::endl;
+
+  Assert (p.distance (cell->center()) < cell->diameter()/2,
+         ExcInternalError());
 }
 
 
index e88fb729851a0962efca69adcaa449abe788df18..eb07bf7bfe23c3a6c8482c6fc9bc04f677207989 100644 (file)
 
 void check (Triangulation<3> &tria)
 {
+  Point<3> p(1./3.,1./2.,-1./5.);
+  
   Triangulation<3>::active_cell_iterator cell
-    = GridTools::find_active_cell_around_point (tria,
-                                                Point<3>(1./3.,
-                                                         1./2.,
-                                                         2./3.));
+    = GridTools::find_active_cell_around_point (tria, p);
 
   deallog << cell << std::endl;
   for (unsigned int v=0; v<GeometryInfo<3>::vertices_per_cell; ++v)
     deallog << "<" << cell->vertex(v) << "> ";
   deallog << std::endl;
+
+  Assert (p.distance (cell->center()) < cell->diameter()/2,
+         ExcInternalError());
 }
 
 
diff --git a/tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_1.output b/tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_1.output
new file mode 100644 (file)
index 0000000..761e4e5
--- /dev/null
@@ -0,0 +1,5 @@
+
+DEAL::2.2
+DEAL::<0.250000 0.250000> <0.500000 0.250000> <0.500000 0.500000> <0.250000 0.500000> 
+DEAL::2.75
+DEAL::<0.250000 0.518306> <0.198223 0.405600> <0.396447 0.396447> <0.500000 0.500000> 
diff --git a/tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_2.output b/tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_2.output
new file mode 100644 (file)
index 0000000..716d1d2
--- /dev/null
@@ -0,0 +1,5 @@
+
+DEAL::2.5
+DEAL::<0.250000 0.250000 0.00000> <0.500000 0.250000 0.00000> <0.500000 0.250000 0.250000> <0.250000 0.250000 0.250000> <0.250000 0.500000 0.00000> <0.500000 0.500000 0.00000> <0.500000 0.500000 0.250000> <0.250000 0.500000 0.250000> 
+DEAL::2.445
+DEAL::<0.286905 0.658777 -1.73472e-18> <0.209333 0.437629 -3.46945e-18> <0.203251 0.422066 0.203251> <0.269808 0.604598 0.269808> <0.562887 0.562887 0.00000> <0.418667 0.418667 0.00000> <0.406502 0.406502 0.197169> <0.530301 0.530301 0.245590> 
diff --git a/tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_3.output b/tests/results/i686-pc-linux-gnu+gcc2.95/bits/find_cell_3.output
new file mode 100644 (file)
index 0000000..3d35e0a
--- /dev/null
@@ -0,0 +1,7 @@
+
+DEAL::1.0
+DEAL::<0.00000 0.00000 0.00000> <0.500000 0.00000 0.00000> <0.500000 0.500000 0.00000> <0.00000 0.500000 0.00000> <0.00000 0.00000 -0.500000> <0.500000 0.00000 -0.500000> <0.500000 0.500000 -0.500000> <0.00000 0.500000 -0.500000> 
+DEAL::1.16
+DEAL::<0.00000 0.00000 0.00000> <0.500000 0.00000 0.00000> <0.500000 0.500000 0.00000> <0.00000 0.500000 0.00000> <0.00000 0.00000 -0.500000> <0.500000 0.00000 -0.500000> <0.500000 0.500000 -0.500000> <0.00000 0.500000 -0.500000> 
+DEAL::1.52
+DEAL::<0.00000 0.577350 -0.577350> <0.00000 0.394338 -0.394338> <-6.93889e-18 0.394338 0.00000> <0.00000 0.577350 0.00000> <0.577350 0.577350 -0.577350> <0.394338 0.394338 -0.394338> <0.394338 0.394338 0.00000> <0.577350 0.577350 0.00000> 
diff --git a/tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_1.output b/tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_1.output
new file mode 100644 (file)
index 0000000..761e4e5
--- /dev/null
@@ -0,0 +1,5 @@
+
+DEAL::2.2
+DEAL::<0.250000 0.250000> <0.500000 0.250000> <0.500000 0.500000> <0.250000 0.500000> 
+DEAL::2.75
+DEAL::<0.250000 0.518306> <0.198223 0.405600> <0.396447 0.396447> <0.500000 0.500000> 
diff --git a/tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_2.output b/tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_2.output
new file mode 100644 (file)
index 0000000..716d1d2
--- /dev/null
@@ -0,0 +1,5 @@
+
+DEAL::2.5
+DEAL::<0.250000 0.250000 0.00000> <0.500000 0.250000 0.00000> <0.500000 0.250000 0.250000> <0.250000 0.250000 0.250000> <0.250000 0.500000 0.00000> <0.500000 0.500000 0.00000> <0.500000 0.500000 0.250000> <0.250000 0.500000 0.250000> 
+DEAL::2.445
+DEAL::<0.286905 0.658777 -1.73472e-18> <0.209333 0.437629 -3.46945e-18> <0.203251 0.422066 0.203251> <0.269808 0.604598 0.269808> <0.562887 0.562887 0.00000> <0.418667 0.418667 0.00000> <0.406502 0.406502 0.197169> <0.530301 0.530301 0.245590> 
diff --git a/tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_3.output b/tests/results/i686-pc-linux-gnu+gcc3.2/bits/find_cell_3.output
new file mode 100644 (file)
index 0000000..3d35e0a
--- /dev/null
@@ -0,0 +1,7 @@
+
+DEAL::1.0
+DEAL::<0.00000 0.00000 0.00000> <0.500000 0.00000 0.00000> <0.500000 0.500000 0.00000> <0.00000 0.500000 0.00000> <0.00000 0.00000 -0.500000> <0.500000 0.00000 -0.500000> <0.500000 0.500000 -0.500000> <0.00000 0.500000 -0.500000> 
+DEAL::1.16
+DEAL::<0.00000 0.00000 0.00000> <0.500000 0.00000 0.00000> <0.500000 0.500000 0.00000> <0.00000 0.500000 0.00000> <0.00000 0.00000 -0.500000> <0.500000 0.00000 -0.500000> <0.500000 0.500000 -0.500000> <0.00000 0.500000 -0.500000> 
+DEAL::1.52
+DEAL::<0.00000 0.577350 -0.577350> <0.00000 0.394338 -0.394338> <-6.93889e-18 0.394338 0.00000> <0.00000 0.577350 0.00000> <0.577350 0.577350 -0.577350> <0.394338 0.394338 -0.394338> <0.394338 0.394338 0.00000> <0.577350 0.577350 0.00000> 
diff --git a/tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_1.output b/tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_1.output
new file mode 100644 (file)
index 0000000..761e4e5
--- /dev/null
@@ -0,0 +1,5 @@
+
+DEAL::2.2
+DEAL::<0.250000 0.250000> <0.500000 0.250000> <0.500000 0.500000> <0.250000 0.500000> 
+DEAL::2.75
+DEAL::<0.250000 0.518306> <0.198223 0.405600> <0.396447 0.396447> <0.500000 0.500000> 
diff --git a/tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_2.output b/tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_2.output
new file mode 100644 (file)
index 0000000..716d1d2
--- /dev/null
@@ -0,0 +1,5 @@
+
+DEAL::2.5
+DEAL::<0.250000 0.250000 0.00000> <0.500000 0.250000 0.00000> <0.500000 0.250000 0.250000> <0.250000 0.250000 0.250000> <0.250000 0.500000 0.00000> <0.500000 0.500000 0.00000> <0.500000 0.500000 0.250000> <0.250000 0.500000 0.250000> 
+DEAL::2.445
+DEAL::<0.286905 0.658777 -1.73472e-18> <0.209333 0.437629 -3.46945e-18> <0.203251 0.422066 0.203251> <0.269808 0.604598 0.269808> <0.562887 0.562887 0.00000> <0.418667 0.418667 0.00000> <0.406502 0.406502 0.197169> <0.530301 0.530301 0.245590> 
diff --git a/tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_3.output b/tests/results/sparc-sun-solaris2.7+gcc2.95/bits/find_cell_3.output
new file mode 100644 (file)
index 0000000..3d35e0a
--- /dev/null
@@ -0,0 +1,7 @@
+
+DEAL::1.0
+DEAL::<0.00000 0.00000 0.00000> <0.500000 0.00000 0.00000> <0.500000 0.500000 0.00000> <0.00000 0.500000 0.00000> <0.00000 0.00000 -0.500000> <0.500000 0.00000 -0.500000> <0.500000 0.500000 -0.500000> <0.00000 0.500000 -0.500000> 
+DEAL::1.16
+DEAL::<0.00000 0.00000 0.00000> <0.500000 0.00000 0.00000> <0.500000 0.500000 0.00000> <0.00000 0.500000 0.00000> <0.00000 0.00000 -0.500000> <0.500000 0.00000 -0.500000> <0.500000 0.500000 -0.500000> <0.00000 0.500000 -0.500000> 
+DEAL::1.52
+DEAL::<0.00000 0.577350 -0.577350> <0.00000 0.394338 -0.394338> <-6.93889e-18 0.394338 0.00000> <0.00000 0.577350 0.00000> <0.577350 0.577350 -0.577350> <0.394338 0.394338 -0.394338> <0.394338 0.394338 0.00000> <0.577350 0.577350 0.00000> 

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.