]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New test
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 May 2007 01:26:55 +0000 (01:26 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 May 2007 01:26:55 +0000 (01:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@14693 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/Makefile
tests/fe/copy_01.cc [new file with mode: 0644]
tests/fe/copy_01/cmp/generic [new file with mode: 0644]

index a09a13accbd98d69dd2a024d9d17167cfc5fb12d..5067740a58af86b1f7d59524ee6dd099d9839473 100644 (file)
@@ -39,7 +39,7 @@ tests_x=fe_data_test traits fe_tools fe_tools_* mapping \
         nedelec* \
        up_and_down \
        check_derivatives \
-       injection_*
+       injection_* copy_*
 
 # from above list of regular expressions, generate the real set of
 # tests
diff --git a/tests/fe/copy_01.cc b/tests/fe/copy_01.cc
new file mode 100644 (file)
index 0000000..d816688
--- /dev/null
@@ -0,0 +1,66 @@
+//----------------------------  q_1.cc  ---------------------------
+//    q_1.cc,v 1.1 2003/05/05 13:49:41 wolf Exp
+//    Version: 
+//
+//    Copyright (C) 2003, 2005, 2007 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
+//    fuqher information on this license.
+//
+//----------------------------  q_1.cc  ---------------------------
+
+
+// Just output the constraint matrices of the FE_Q element. Test
+// introduced when we started to compute them on the fly, rather than
+// precomputing them for a number of elements and storing them in a
+// table
+
+#include "../tests.h"
+#include <base/logstream.h>
+#include <fe/fe_q.h>
+
+#include <fstream>
+#include <string>
+
+#define PRECISION 2
+
+
+
+template<int dim>
+void
+test(const unsigned int degree)
+{
+  deallog << "FE_Q<" << dim << "> (" << degree << ")"
+         << std::endl;
+  
+  FE_Q<dim> fe_q(degree);
+  FE_Q<dim> x(fe_q);
+}
+
+
+int
+main()
+{
+  std::ofstream logfile ("copy_01/output");
+  logfile.precision (PRECISION);
+  logfile.setf(std::ios::fixed);  
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+                                   // no constraints in 1d, but we had
+                                   // the matrices precomputed up to
+                                   // Q4 for 2d and Q2 for 3d
+  for (unsigned int degree=1; degree<=4; ++degree)
+    test<2>(degree);
+
+  for (unsigned int degree=1; degree<=2; ++degree)
+    test<3>(degree);
+
+  return 0;
+}
+
+
+
diff --git a/tests/fe/copy_01/cmp/generic b/tests/fe/copy_01/cmp/generic
new file mode 100644 (file)
index 0000000..8f301c7
--- /dev/null
@@ -0,0 +1,7 @@
+
+DEAL::FE_Q<2> (1)
+DEAL::FE_Q<2> (2)
+DEAL::FE_Q<2> (3)
+DEAL::FE_Q<2> (4)
+DEAL::FE_Q<3> (1)
+DEAL::FE_Q<3> (2)

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.