From bb01bb40fc8579bb4154070222b78504d9ea9ade Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 31 Jan 2005 15:07:28 +0000 Subject: [PATCH] Add new test that still fails. git-svn-id: https://svn.dealii.org/trunk@9882 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/Makefile | 5 ++-- tests/bits/rt_1.cc | 61 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 tests/bits/rt_1.cc diff --git a/tests/bits/Makefile b/tests/bits/Makefile index 69a460b6ee..10f7e393e2 100644 --- a/tests/bits/Makefile +++ b/tests/bits/Makefile @@ -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 index 0000000000..319dff8c41 --- /dev/null +++ b/tests/bits/rt_1.cc @@ -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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +template +void test () +{ + Triangulation triangulation; + GridGenerator::hyper_cube (triangulation, -1, 1); + + DoFHandler dof_handler (triangulation); + FE_RaviartThomas fe (1); + dof_handler.distribute_dofs (fe); + + QGauss q(2); + FEFaceValues 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; +} -- 2.39.5