]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New test.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 7 Jul 2005 14:41:02 +0000 (14:41 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 7 Jul 2005 14:41:02 +0000 (14:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@11093 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/Makefile
tests/bits/geometry_info_2.cc [new file with mode: 0644]

index 889aba595a4c573dfd4aabc51b0dd59dbcbddc6e..a258b02ecaf41aee9b252e66fc7119335a6e51aa 100644 (file)
@@ -21,7 +21,7 @@ default: run-tests
 
 ############################################################
 
-tests_x = geometry_info_1 \
+tests_x = geometry_info_* \
          grid_generator_?? \
          grid_in_* \
          point_inside_? \
diff --git a/tests/bits/geometry_info_2.cc b/tests/bits/geometry_info_2.cc
new file mode 100644 (file)
index 0000000..e00737f
--- /dev/null
@@ -0,0 +1,54 @@
+//----------------------------  geometry_info_2.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2003, 2004, 2005 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//----------------------------  geometry_info_2.cc  ---------------------------
+
+
+// output most all static members of GeometryInfo
+
+#include "../tests.h"
+#include <base/logstream.h>
+#include <grid/geometry_info.h>
+
+#include <fstream>
+#include <cstdlib>
+
+template <int dim>
+void test ()
+{
+  deallog << GeometryInfo<dim>::children_per_cell << std::endl;
+  deallog << GeometryInfo<dim>::faces_per_cell << std::endl;
+  deallog << GeometryInfo<dim>::subfaces_per_face << std::endl;
+  deallog << GeometryInfo<dim>::vertices_per_cell << std::endl;
+
+  deallog << GeometryInfo<dim>::vertices_per_face << std::endl;
+  deallog << GeometryInfo<dim>::lines_per_face << std::endl;
+  deallog << GeometryInfo<dim>::quads_per_face << std::endl;
+  
+  deallog << GeometryInfo<dim>::lines_per_cell << std::endl;
+  deallog << GeometryInfo<dim>::quads_per_cell << std::endl;
+  deallog << GeometryInfo<dim>::hexes_per_cell << std::endl;
+}
+
+
+int main () 
+{
+  std::ofstream logfile("geometry_info_2.output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  test<1> ();
+  test<2> ();
+  test<3> ();
+
+  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.