]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
One more test.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 9 Dec 2010 15:22:17 +0000 (15:22 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 9 Dec 2010 15:22:17 +0000 (15:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@22950 0785d39b-7218-0410-832d-ea1e28bc413d

tests/codim_one/direction_flag_03.cc [new file with mode: 0644]
tests/codim_one/direction_flag_03/cmp/generic [new file with mode: 0644]

diff --git a/tests/codim_one/direction_flag_03.cc b/tests/codim_one/direction_flag_03.cc
new file mode 100644 (file)
index 0000000..bae8caa
--- /dev/null
@@ -0,0 +1,55 @@
+//----------------------------  direction_flag_03.cc  ---------------------------
+//    $Id: bem.cc 22693 2010-11-11 20:11:47Z kanschat $
+//    Version: $Name$
+//
+//    Copyright (C) 2010 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.
+//
+//----------------------------  direction_flag_03.cc  ---------------------------
+
+// there are no direction flags if dim==spacedim. make sure we always
+// get back true in that case
+
+#include "../tests.h"
+
+#include <grid/tria.h>
+#include <grid/grid_generator.h>
+#include <grid/tria_boundary_lib.h>
+#include <grid/grid_out.h>
+#include <grid/grid_tools.h>
+
+using namespace std;
+
+
+template <int dim>
+void test ()
+{
+  Triangulation<dim> volume_mesh;
+  GridGenerator::hyper_cube(volume_mesh);
+  volume_mesh.refine_global(1);
+
+  for (typename Triangulation<dim>::active_cell_iterator
+        cell = volume_mesh.begin_active();
+       cell != volume_mesh.end(); ++cell)
+    Assert (cell->direction_flag() == true,
+           ExcInternalError());
+
+  deallog << "OK" << std::endl;
+}
+
+
+
+int main ()
+{
+  ofstream logfile("direction_flag_03/output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  test<1> ();
+  test<2> ();
+  test<3> ();
+}
diff --git a/tests/codim_one/direction_flag_03/cmp/generic b/tests/codim_one/direction_flag_03/cmp/generic
new file mode 100644 (file)
index 0000000..fb71de2
--- /dev/null
@@ -0,0 +1,4 @@
+
+DEAL::OK
+DEAL::OK
+DEAL::OK

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.