]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check of get_boundary_indicators for 1d grids
authorSebastian Pauletti <spauletti@gmail.com>
Wed, 17 Aug 2011 14:32:46 +0000 (14:32 +0000)
committerSebastian Pauletti <spauletti@gmail.com>
Wed, 17 Aug 2011 14:32:46 +0000 (14:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@24109 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/get_boundary_indicators_1d.cc [new file with mode: 0644]
tests/bits/get_boundary_indicators_1d/cmp/generic [new file with mode: 0644]

diff --git a/tests/bits/get_boundary_indicators_1d.cc b/tests/bits/get_boundary_indicators_1d.cc
new file mode 100644 (file)
index 0000000..bb1bce7
--- /dev/null
@@ -0,0 +1,34 @@
+//----------------------------  get_boundary_indicators_1d.cc  ---------------------------
+//    $Id: testsuite.html 23951 2011-07-20 11:44:09Z bangerth $
+//
+//    Copyright (C) 2011 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.
+//
+//----------------------------  get_boundary_indicators_1d.cc  ---------------------------
+
+
+#include "../tests.h"
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+
+// Check if Triangulation<1>::get_boundary_indicators() works for 1d grids.
+
+
+int main ()
+{
+  std::ofstream logfile("get_boundary_indicators_1d/output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  Triangulation<1>   triangulation;
+  GridGenerator::hyper_cube (triangulation, -1, 1);
+  const std::vector<unsigned char> indicators = triangulation.get_boundary_indicators();
+  for (unsigned int i=0; i<indicators.size(); ++i)
+    deallog << int (indicators[i]) << std::endl;
+
+  return 0;
+}
diff --git a/tests/bits/get_boundary_indicators_1d/cmp/generic b/tests/bits/get_boundary_indicators_1d/cmp/generic
new file mode 100644 (file)
index 0000000..faa0ebd
--- /dev/null
@@ -0,0 +1,3 @@
+
+DEAL::0
+DEAL::1

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.