]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add new test that still fails.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 31 Jan 2005 15:07:28 +0000 (15:07 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 31 Jan 2005 15:07:28 +0000 (15:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@9882 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/Makefile
tests/bits/rt_1.cc [new file with mode: 0644]

index 69a460b6eee28b215db2c339a8f5dacf98237006..10f7e393e2756d5f399d379804b217773c12a293 100644 (file)
@@ -1,7 +1,7 @@
 # Generated automatically from Makefile.in by configure.
 ############################################################
 # Makefile,v 1.15 2002/06/13 12:51:13 hartmann Exp
-# Copyright (C) 2000, 2001, 2002, 2003, 2004 by the deal.II authors
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
 ############################################################
 
 ############################################################
@@ -64,7 +64,8 @@ tests_x = anna_? \
          compressed_sparsity_pattern_* \
          point_difference_* \
          umfpack_* \
-         fe_q_3d*
+         fe_q_3d* \
+          rt_*
 
 # tests for the hp branch:
 #        fe_collection_*
diff --git a/tests/bits/rt_1.cc b/tests/bits/rt_1.cc
new file mode 100644 (file)
index 0000000..319dff8
--- /dev/null
@@ -0,0 +1,61 @@
+//----------------------------  rt_1.cc  ---------------------------
+//    $Id$
+//    Version: $Name$ 
+//
+//    Copyright (C) 2005 by the deal.II authors and
+//
+//    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.
+//
+//----------------------------  rt_1.cc  ---------------------------
+
+
+// there was a bug in the RT element that Oliver Kayser-Herold fixed in
+// January 2005. Check this
+
+#include "../tests.h"
+#include <base/logstream.h>
+#include <base/quadrature_lib.h>
+#include <grid/tria.h>
+#include <dofs/dof_handler.h>
+#include <grid/grid_generator.h>
+#include <grid/tria_accessor.h>
+#include <grid/tria_iterator.h>
+#include <dofs/dof_accessor.h>
+#include <dofs/dof_tools.h>
+#include <fe/fe_raviart_thomas.h>      
+#include <fe/fe_values.h>
+#include <iostream>
+#include <fstream>
+
+
+template <int dim>
+void test ()
+{
+  Triangulation<dim> triangulation;
+  GridGenerator::hyper_cube (triangulation, -1, 1);
+
+  DoFHandler<dim> dof_handler (triangulation);
+  FE_RaviartThomas<dim> fe (1);
+  dof_handler.distribute_dofs (fe);
+
+  QGauss<dim-1> q(2);
+  FEFaceValues<dim> fe_values (fe, q, update_values|update_gradients);
+  fe_values.reinit (dof_handler.begin_active(), 0);
+
+  deallog << "OK" << std::endl;
+}
+
+
+int main () 
+{
+  std::ofstream logfile("rt_1.output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+
+  test<2> ();
+  test<3> ();
+  return 0;
+}

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.