From b19ed1815fe8df7f27dac3a1323a5a32ac544b23 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 28 Apr 2004 22:07:15 +0000 Subject: [PATCH] Test for hp branch. git-svn-id: https://svn.dealii.org/trunk@9114 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/Makefile | 3 ++ tests/bits/fe_collection_01.cc | 52 ++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tests/bits/fe_collection_01.cc diff --git a/tests/bits/Makefile b/tests/bits/Makefile index bbc4bfd050..acfe41d498 100644 --- a/tests/bits/Makefile +++ b/tests/bits/Makefile @@ -61,6 +61,9 @@ tests_x = anna_? \ cylinder_shell_* \ grid_in_* +# tests for the hp branch: +# fe_collection_* + ifeq ($(USE_CONTRIB_PETSC),yes) tests_x += petsc_* endif diff --git a/tests/bits/fe_collection_01.cc b/tests/bits/fe_collection_01.cc new file mode 100644 index 0000000000..3d8c0bc295 --- /dev/null +++ b/tests/bits/fe_collection_01.cc @@ -0,0 +1,52 @@ +//---------------------------- fe_tools_01a.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2004 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. +// +//---------------------------- fe_tools_01a.cc --------------------------- + +// FECollection would throw an exception when its destructor is called. Check +// that this is fixed + +#include "../tests.h" +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +template +void +check () +{ + const FE_Q fe_1(1); + const FE_Q fe_2(2); + + FECollection fc; + fc.add_fe (fe_1); + fc.add_fe (fe_2); +} + +int main() +{ + std::ofstream logfile("deal_solver_01.output"); + logfile.precision(4); + deallog.attach(logfile); + deallog.depth_console(0); + + check<1> (); + check<2> (); + check<3> (); +} -- 2.39.5