From 1b9cb8752318a481f13c835272742ff62ba65021 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 23 Feb 2006 02:38:33 +0000 Subject: [PATCH] An even simpler testcase that also fails. git-svn-id: https://svn.dealii.org/trunk@12471 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/hp/mapping_collection_03.cc | 54 ++++++++++++++++++++++ tests/hp/mapping_collection_03/cmp/generic | 2 + 2 files changed, 56 insertions(+) create mode 100644 tests/hp/mapping_collection_03.cc create mode 100644 tests/hp/mapping_collection_03/cmp/generic diff --git a/tests/hp/mapping_collection_03.cc b/tests/hp/mapping_collection_03.cc new file mode 100644 index 0000000000..d3077593e5 --- /dev/null +++ b/tests/hp/mapping_collection_03.cc @@ -0,0 +1,54 @@ +//---------------------------- mapping_collection_03.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2005, 2006 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. +// +//---------------------------- mapping_collection_03.cc --------------------------- + + +// a test that triggers really hard to track down failures in +// mapping_collection_01 in a really simple way; an even further +// simplified form of mapping_collection_02 + + +#include +#include +#include + +#include + + +template +void test () +{ + MappingQ mapping(2); + deallog << "Cloning..." << std::endl; + Mapping *copy = mapping.clone(); + deallog << "Deleting clone..." << std::endl; + delete copy; + deallog << "Destroying original..." << std::endl; +} + + + +int main () +{ + std::ofstream logfile("mapping_collection_03/output"); + logfile.precision(2); + + deallog.attach(logfile); + deallog.depth_console(0); + deallog.threshold_double(1.e-10); + + test<1> (); + test<2> (); + test<3> (); + + deallog << "OK" << std::endl; +} diff --git a/tests/hp/mapping_collection_03/cmp/generic b/tests/hp/mapping_collection_03/cmp/generic new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/hp/mapping_collection_03/cmp/generic @@ -0,0 +1,2 @@ + +DEAL::OK -- 2.39.5