From: wolf Date: Wed, 28 Apr 2004 22:07:15 +0000 (+0000) Subject: Test for hp branch. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abea10682a04370416c0717b4f284bb4632dfcc3;p=dealii-svn.git Test for hp branch. git-svn-id: https://svn.dealii.org/trunk@9114 0785d39b-7218-0410-832d-ea1e28bc413d --- 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> (); +}