]> https://gitweb.dealii.org/ - dealii.git/commitdiff
An even simpler testcase that also fails.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 02:38:33 +0000 (02:38 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 02:38:33 +0000 (02:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@12471 0785d39b-7218-0410-832d-ea1e28bc413d

tests/hp/mapping_collection_03.cc [new file with mode: 0644]
tests/hp/mapping_collection_03/cmp/generic [new file with mode: 0644]

diff --git a/tests/hp/mapping_collection_03.cc b/tests/hp/mapping_collection_03.cc
new file mode 100644 (file)
index 0000000..d307759
--- /dev/null
@@ -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 <base/logstream.h>
+#include <fe/mapping_collection.h>
+#include <fe/mapping_q.h>
+
+#include <fstream>
+
+
+template <int dim>
+void test ()
+{
+  MappingQ<dim> mapping(2);
+  deallog << "Cloning..." << std::endl;
+  Mapping<dim> *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 (file)
index 0000000..0fd8fc1
--- /dev/null
@@ -0,0 +1,2 @@
+
+DEAL::OK

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.