From 356e5c6abe68835ec6f8eb30b9bcd4e04c89d5eb Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 24 May 2007 01:26:55 +0000 Subject: [PATCH] New test git-svn-id: https://svn.dealii.org/trunk@14693 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fe/Makefile | 2 +- tests/fe/copy_01.cc | 66 ++++++++++++++++++++++++++++++++++++ tests/fe/copy_01/cmp/generic | 7 ++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 tests/fe/copy_01.cc create mode 100644 tests/fe/copy_01/cmp/generic diff --git a/tests/fe/Makefile b/tests/fe/Makefile index a09a13accb..5067740a58 100644 --- a/tests/fe/Makefile +++ b/tests/fe/Makefile @@ -39,7 +39,7 @@ tests_x=fe_data_test traits fe_tools fe_tools_* mapping \ nedelec* \ up_and_down \ check_derivatives \ - injection_* + injection_* copy_* # from above list of regular expressions, generate the real set of # tests diff --git a/tests/fe/copy_01.cc b/tests/fe/copy_01.cc new file mode 100644 index 0000000000..d816688840 --- /dev/null +++ b/tests/fe/copy_01.cc @@ -0,0 +1,66 @@ +//---------------------------- q_1.cc --------------------------- +// q_1.cc,v 1.1 2003/05/05 13:49:41 wolf Exp +// Version: +// +// Copyright (C) 2003, 2005, 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 +// fuqher information on this license. +// +//---------------------------- q_1.cc --------------------------- + + +// Just output the constraint matrices of the FE_Q element. Test +// introduced when we started to compute them on the fly, rather than +// precomputing them for a number of elements and storing them in a +// table + +#include "../tests.h" +#include +#include + +#include +#include + +#define PRECISION 2 + + + +template +void +test(const unsigned int degree) +{ + deallog << "FE_Q<" << dim << "> (" << degree << ")" + << std::endl; + + FE_Q fe_q(degree); + FE_Q x(fe_q); +} + + +int +main() +{ + std::ofstream logfile ("copy_01/output"); + logfile.precision (PRECISION); + logfile.setf(std::ios::fixed); + deallog.attach(logfile); + deallog.depth_console(0); + deallog.threshold_double(1.e-10); + + // no constraints in 1d, but we had + // the matrices precomputed up to + // Q4 for 2d and Q2 for 3d + for (unsigned int degree=1; degree<=4; ++degree) + test<2>(degree); + + for (unsigned int degree=1; degree<=2; ++degree) + test<3>(degree); + + return 0; +} + + + diff --git a/tests/fe/copy_01/cmp/generic b/tests/fe/copy_01/cmp/generic new file mode 100644 index 0000000000..8f301c72c1 --- /dev/null +++ b/tests/fe/copy_01/cmp/generic @@ -0,0 +1,7 @@ + +DEAL::FE_Q<2> (1) +DEAL::FE_Q<2> (2) +DEAL::FE_Q<2> (3) +DEAL::FE_Q<2> (4) +DEAL::FE_Q<3> (1) +DEAL::FE_Q<3> (2) -- 2.39.5