]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Test DGP, ABF elements
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Aug 2006 17:18:50 +0000 (17:18 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Aug 2006 17:18:50 +0000 (17:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@13674 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/project_abf_01.cc [new file with mode: 0644]
tests/deal.II/project_dgp_01.cc [new file with mode: 0644]
tests/deal.II/project_dgp_01/cmp/generic [new file with mode: 0644]

diff --git a/tests/deal.II/project_abf_01.cc b/tests/deal.II/project_abf_01.cc
new file mode 100644 (file)
index 0000000..bcd9f3f
--- /dev/null
@@ -0,0 +1,30 @@
+//----------------------------  project_abf_01.cc  ---------------------------
+//    $Id: project_abf_01.cc 12732 2006-03-28 23:15:45Z wolf $
+//    Version: $Name$ 
+//
+//    Copyright (C) 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.
+//
+//----------------------------  project_abf_01.cc  ---------------------------
+
+
+// check that VectorTools::project works for ABF elements correctly on
+// a uniformly refined mesh for functions of degree q
+
+char logname[] = "project_abf_01/output";
+
+
+#include "project_common.cc"
+
+
+template <int dim>
+void test ()
+{
+  if (dim > 1)
+    for (unsigned int p=0; p<6-dim; ++p)
+      test_no_hanging_nodes (FE_ABF<dim>(p), p);
+}
diff --git a/tests/deal.II/project_dgp_01.cc b/tests/deal.II/project_dgp_01.cc
new file mode 100644 (file)
index 0000000..fa9b088
--- /dev/null
@@ -0,0 +1,29 @@
+//----------------------------  project_dgp_01.cc  ---------------------------
+//    $Id: project_dgp_01.cc 12732 2006-03-28 23:15:45Z wolf $
+//    Version: $Name$ 
+//
+//    Copyright (C) 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.
+//
+//----------------------------  project_dgp_01.cc  ---------------------------
+
+
+// check that VectorTools::project works for Q elements correctly on
+// a uniformly refined mesh for functions of degree q
+
+char logname[] = "project_dgp_01/output";
+
+
+#include "project_common.cc"
+
+
+template <int dim>
+void test ()
+{
+  for (unsigned int p=0; p<6-dim; ++p)
+    test_no_hanging_nodes (FE_DGP<dim>(p), p);
+}
diff --git a/tests/deal.II/project_dgp_01/cmp/generic b/tests/deal.II/project_dgp_01/cmp/generic
new file mode 100644 (file)
index 0000000..adfd75d
--- /dev/null
@@ -0,0 +1,178 @@
+
+DEAL::n_dofs=8
+DEAL:cg::Starting value 0.354
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<1>(0), P_0, rel. error=0
+DEAL:cg::Starting value 0.736
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<1>(0), P_1, rel. error=0.0123
+DEAL:cg::Starting value 1.18
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(0), P_2, rel. error=0.0203
+DEAL::n_dofs=16
+DEAL:cg::Starting value 0.354
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<1>(1), P_0, rel. error=0
+DEAL:cg::Starting value 0.736
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<1>(1), P_1, rel. error=0
+DEAL:cg::Starting value 1.18
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(1), P_2, rel. error=0.000370
+DEAL:cg::Starting value 1.68
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(1), P_3, rel. error=0.000834
+DEAL::n_dofs=24
+DEAL:cg::Starting value 0.354
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<1>(2), P_0, rel. error=0
+DEAL:cg::Starting value 0.736
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<1>(2), P_1, rel. error=0
+DEAL:cg::Starting value 1.18
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(2), P_2, rel. error=0
+DEAL:cg::Starting value 1.68
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(2), P_3, rel. error=1.10e-05
+DEAL:cg::Starting value 2.24
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(2), P_4, rel. error=3.12e-05
+DEAL::n_dofs=32
+DEAL:cg::Starting value 0.354
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(3), P_0, rel. error=0
+DEAL:cg::Starting value 0.736
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(3), P_1, rel. error=0
+DEAL:cg::Starting value 1.18
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(3), P_2, rel. error=0
+DEAL:cg::Starting value 1.68
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(3), P_3, rel. error=0
+DEAL:cg::Starting value 2.24
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(3), P_4, rel. error=3.25e-07
+DEAL:cg::Starting value 2.84
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(3), P_5, rel. error=1.11e-06
+DEAL::n_dofs=40
+DEAL:cg::Starting value 0.354
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(4), P_0, rel. error=0
+DEAL:cg::Starting value 0.736
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(4), P_1, rel. error=0
+DEAL:cg::Starting value 1.18
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(4), P_2, rel. error=0
+DEAL:cg::Starting value 1.68
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(4), P_3, rel. error=0
+DEAL:cg::Starting value 2.24
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(4), P_4, rel. error=0
+DEAL:cg::Starting value 2.84
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(4), P_5, rel. error=9.64e-09
+DEAL:cg::Starting value 3.49
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<1>(4), P_6, rel. error=3.87e-08
+DEAL::n_dofs=64
+DEAL:cg::Starting value 0.375
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<2>(0), P_0, rel. error=0
+DEAL:cg::Starting value 0.767
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<2>(0), P_1, rel. error=0.00329
+DEAL:cg::Starting value 1.20
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(0), P_2, rel. error=0.00558
+DEAL::n_dofs=192
+DEAL:cg::Starting value 0.375
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<2>(1), P_0, rel. error=0
+DEAL:cg::Starting value 0.767
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<2>(1), P_1, rel. error=0
+DEAL:cg::Starting value 1.20
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(1), P_2, rel. error=0.000102
+DEAL:cg::Starting value 1.66
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(1), P_3, rel. error=0.000236
+DEAL::n_dofs=384
+DEAL:cg::Starting value 0.375
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(2), P_0, rel. error=0
+DEAL:cg::Starting value 0.767
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<2>(2), P_1, rel. error=0
+DEAL:cg::Starting value 1.20
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(2), P_2, rel. error=0
+DEAL:cg::Starting value 1.66
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(2), P_3, rel. error=3.10e-06
+DEAL:cg::Starting value 2.17
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(2), P_4, rel. error=9.01e-06
+DEAL::n_dofs=640
+DEAL:cg::Starting value 0.375
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(3), P_0, rel. error=0
+DEAL:cg::Starting value 0.767
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(3), P_1, rel. error=0
+DEAL:cg::Starting value 1.20
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(3), P_2, rel. error=0
+DEAL:cg::Starting value 1.66
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(3), P_3, rel. error=0
+DEAL:cg::Starting value 2.17
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(3), P_4, rel. error=9.38e-08
+DEAL:cg::Starting value 2.70
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<2>(3), P_5, rel. error=3.27e-07
+DEAL::n_dofs=512
+DEAL:cg::Starting value 0.265
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(0), P_0, rel. error=0
+DEAL:cg::Starting value 0.539
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(0), P_1, rel. error=0.000979
+DEAL:cg::Starting value 0.831
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<3>(0), P_2, rel. error=0.00168
+DEAL::n_dofs=2048
+DEAL:cg::Starting value 0.265
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(1), P_0, rel. error=0
+DEAL:cg::Starting value 0.539
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(1), P_1, rel. error=0
+DEAL:cg::Starting value 0.831
+DEAL:cg::Convergence step 1 value 0
+DEAL::FE_DGP<3>(1), P_2, rel. error=3.07e-05
+DEAL:cg::Starting value 1.14
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(1), P_3, rel. error=7.18e-05
+DEAL::n_dofs=5120
+DEAL:cg::Starting value 0.265
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(2), P_0, rel. error=0
+DEAL:cg::Starting value 0.539
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(2), P_1, rel. error=0
+DEAL:cg::Starting value 0.831
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(2), P_2, rel. error=0
+DEAL:cg::Starting value 1.14
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(2), P_3, rel. error=9.44e-07
+DEAL:cg::Starting value 1.47
+DEAL:cg::Convergence step 2 value 0
+DEAL::FE_DGP<3>(2), P_4, rel. error=2.77e-06

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.