]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add RT tests for hp. The corresponding functions in the RT element are currently...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Oct 2007 03:44:59 +0000 (03:44 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Oct 2007 03:44:59 +0000 (03:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@15384 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fail/hp_constraints_rt_01.cc [new file with mode: 0644]
tests/fail/hp_constraints_rt_02.cc [new file with mode: 0644]
tests/fail/hp_constraints_rt_03.cc [new file with mode: 0644]
tests/fail/hp_constraints_rt_04.cc [new file with mode: 0644]
tests/fail/hp_constraints_rt_05.cc [new file with mode: 0644]
tests/fail/hp_constraints_rt_06.cc [new file with mode: 0644]

diff --git a/tests/fail/hp_constraints_rt_01.cc b/tests/fail/hp_constraints_rt_01.cc
new file mode 100644 (file)
index 0000000..b6cbcbd
--- /dev/null
@@ -0,0 +1,34 @@
+//----------------------------  hp_constraints_rt_01.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2006, 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
+//    further information on this license.
+//
+//----------------------------  hp_constraints_rt_01.cc  ---------------------------
+
+
+// check that computation of hp constraints works for RT elements correctly
+
+char logname[] = "hp_constraints_rt_01/output";
+
+
+#include "../hp/hp_constraints_common.h"
+#include <fe/fe_raviart_thomas.h>
+
+
+template <int dim>
+void test ()
+{
+  if (dim == 1)
+    return;
+  
+  hp::FECollection<dim> fe;
+  for (unsigned int i=1; i<4; ++i)
+    fe.push_back (FE_RaviartThomas<dim>(i));
+  test_no_hanging_nodes  (fe);
+}
diff --git a/tests/fail/hp_constraints_rt_02.cc b/tests/fail/hp_constraints_rt_02.cc
new file mode 100644 (file)
index 0000000..d3e916e
--- /dev/null
@@ -0,0 +1,34 @@
+//----------------------------  hp_constraints_rt_02.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2006, 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
+//    further information on this license.
+//
+//----------------------------  hp_constraints_rt_02.cc  ---------------------------
+
+
+// check that computation of hp constraints works for RT elements correctly
+
+char logname[] = "hp_constraints_rt_02/output";
+
+
+#include "../hp/hp_constraints_common.h"
+#include <fe/fe_raviart_thomas.h>
+
+
+template <int dim>
+void test ()
+{
+  if (dim == 1)
+    return;
+  
+  hp::FECollection<dim> fe;
+  for (unsigned int i=1; i<4; ++i)
+    fe.push_back (FE_RaviartThomas<dim>(i));
+  test_with_hanging_nodes  (fe);
+}
diff --git a/tests/fail/hp_constraints_rt_03.cc b/tests/fail/hp_constraints_rt_03.cc
new file mode 100644 (file)
index 0000000..d582635
--- /dev/null
@@ -0,0 +1,34 @@
+//----------------------------  hp_constraints_rt_03.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2006, 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
+//    further information on this license.
+//
+//----------------------------  hp_constraints_rt_03.cc  ---------------------------
+
+
+// check that computation of hp constraints works for RT elements correctly
+
+char logname[] = "hp_constraints_rt_03/output";
+
+
+#include "../hp/hp_constraints_common.h"
+#include <fe/fe_raviart_thomas.h>
+
+
+template <int dim>
+void test ()
+{
+  if (dim == 1)
+    return;
+  
+  hp::FECollection<dim> fe;
+  for (unsigned int i=1; i<4; ++i)
+    fe.push_back (FE_RaviartThomas<dim>(i));
+  test_with_wrong_face_orientation  (fe);
+}
diff --git a/tests/fail/hp_constraints_rt_04.cc b/tests/fail/hp_constraints_rt_04.cc
new file mode 100644 (file)
index 0000000..1d6bfd7
--- /dev/null
@@ -0,0 +1,34 @@
+//----------------------------  hp_constraints_rt_04.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2006, 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
+//    further information on this license.
+//
+//----------------------------  hp_constraints_rt_04.cc  ---------------------------
+
+
+// check that computation of hp constraints works for RT elements correctly
+
+char logname[] = "hp_constraints_rt_04/output";
+
+
+#include "../hp/hp_constraints_common.h"
+#include <fe/fe_raviart_thomas.h>
+
+
+template <int dim>
+void test ()
+{
+  if (dim == 1)
+    return;
+  
+  hp::FECollection<dim> fe;
+  for (unsigned int i=1; i<4; ++i)
+    fe.push_back (FE_RaviartThomas<dim>(i));
+  test_with_2d_deformed_mesh  (fe);
+}
diff --git a/tests/fail/hp_constraints_rt_05.cc b/tests/fail/hp_constraints_rt_05.cc
new file mode 100644 (file)
index 0000000..ed0b9f9
--- /dev/null
@@ -0,0 +1,34 @@
+//----------------------------  hp_constraints_rt_05.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2006, 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
+//    further information on this license.
+//
+//----------------------------  hp_constraints_rt_05.cc  ---------------------------
+
+
+// check that computation of hp constraints works for RT elements correctly
+
+char logname[] = "hp_constraints_rt_05/output";
+
+
+#include "../hp/hp_constraints_common.h"
+#include <fe/fe_raviart_thomas.h>
+
+
+template <int dim>
+void test ()
+{
+  if (dim == 1)
+    return;
+  
+  hp::FECollection<dim> fe;
+  for (unsigned int i=1; i<4; ++i)
+    fe.push_back (FE_RaviartThomas<dim>(i));
+  test_with_2d_deformed_refined_mesh  (fe);
+}
diff --git a/tests/fail/hp_constraints_rt_06.cc b/tests/fail/hp_constraints_rt_06.cc
new file mode 100644 (file)
index 0000000..64980f8
--- /dev/null
@@ -0,0 +1,39 @@
+//----------------------------  hp_constraints_rt_06.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2006, 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
+//    further information on this license.
+//
+//----------------------------  hp_constraints_rt_06.cc  ---------------------------
+
+
+// check that computation of hp constraints works for RT elements correctly
+
+char logname[] = "hp_constraints_rt_06/output";
+
+
+#include "../hp/hp_constraints_common.h"
+#include <fe/fe_raviart_thomas.h>
+
+
+template <int dim>
+void test ()
+{
+  if (dim == 1)
+    return;
+  
+  hp::FECollection<dim> fe;
+  std::vector<unsigned int> degrees;
+  for (unsigned int i=1; i<7-dim; ++i)
+    {
+      fe.push_back (FE_RaviartThomas<dim>(i));
+      degrees.push_back (i);
+    }
+  
+  test_interpolation  (fe, degrees);
+}

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.