]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Even simpler testcase.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 02:58:05 +0000 (02:58 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 02:58:05 +0000 (02:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@12472 0785d39b-7218-0410-832d-ea1e28bc413d

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

diff --git a/tests/hp/mapping_collection_04.cc b/tests/hp/mapping_collection_04.cc
new file mode 100644 (file)
index 0000000..0da06d4
--- /dev/null
@@ -0,0 +1,54 @@
+//----------------------------  mapping_collection_04.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_04.cc  ---------------------------
+
+
+// a test that shows that mapping_collection_0[1-3] really is due to
+// the fact that MappingQ has a dysfunctional copy constructor...
+
+
+#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 << "Copying..." << std::endl;
+    MappingQ<dim> copy(mapping);
+    deallog << "Deleting clone..." << std::endl;
+  }
+  deallog << "Destroying original..." << std::endl;  
+}
+
+
+
+int main ()
+{
+  std::ofstream logfile("mapping_collection_04/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_04/cmp/generic b/tests/hp/mapping_collection_04/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.