]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add new test.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 26 Aug 2010 09:51:16 +0000 (09:51 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 26 Aug 2010 09:51:16 +0000 (09:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@21719 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/Makefile
tests/base/point_01.cc [new file with mode: 0644]
tests/base/point_01/cmp/generic [new file with mode: 0644]

index 48cba35a64aafd73976284cb0ecb9d128775004c..e3055c1da2556864ace7ed78320edfd4885db937 100644 (file)
@@ -74,6 +74,7 @@ tests_x =  geometry_info_* \
           table \
           tensor \
           tensor_* \
+          point_* \
           index_set_* \
           symmetric_tensor_* \
           full_tensor_* \
diff --git a/tests/base/point_01.cc b/tests/base/point_01.cc
new file mode 100644 (file)
index 0000000..d5a52af
--- /dev/null
@@ -0,0 +1,46 @@
+//----------------------------  point_01.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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.
+//
+//----------------------------  point_01.cc  ---------------------------
+
+
+#include "../tests.h"
+#include <base/point.h>
+#include <base/logstream.h>
+#include <lac/vector.h>
+#include <fstream>
+#include <iomanip>
+
+
+template <int dim>
+void check ()
+{
+  Point<dim> p;
+  for (unsigned int i=0; i<dim; ++i)
+    p[i] = i;
+
+  for (unsigned int i=0; i<dim; ++i)
+    deallog << p(i) << ' ';
+  deallog << std::endl;
+}
+
+int main ()
+{
+  std::ofstream logfile("point_01/output");
+  deallog << std::setprecision(3);
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  check<1>();
+  check<2>();
+  check<3>();
+}
diff --git a/tests/base/point_01/cmp/generic b/tests/base/point_01/cmp/generic
new file mode 100644 (file)
index 0000000..44a99ce
--- /dev/null
@@ -0,0 +1,4 @@
+
+DEAL::0 
+DEAL::0 1.00 
+DEAL::0 1.00 2.00 

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.