]> https://gitweb.dealii.org/ - dealii.git/commitdiff
New very simple test that unfortunately fails...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 02:22:11 +0000 (02:22 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 02:22:11 +0000 (02:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@12467 0785d39b-7218-0410-832d-ea1e28bc413d

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

index dec550b43926738081e81456baea849b1a1e299b..087446cea241a38044c2854b303d6c90d8dbe727 100644 (file)
@@ -30,7 +30,7 @@ void test ()
 {
   hp::MappingCollection<dim> mapping_collection;
   mapping_collection.push_back (MappingQ<dim>(2));
-  mapping_collection.push_back (MappingQ1<dim>());
+  mapping_collection.push_back (MappingQ<dim>(1));
 
                                    // now create a copy and make sure
                                    // it goes out of scope before the
diff --git a/tests/hp/mapping_collection_02.cc b/tests/hp/mapping_collection_02.cc
new file mode 100644 (file)
index 0000000..8015bfd
--- /dev/null
@@ -0,0 +1,50 @@
+//----------------------------  mapping_collection_02.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_02.cc  ---------------------------
+
+
+// a test that triggers really hard to track down failures in
+// mapping_collection_01 in a really simple way
+
+
+#include <base/logstream.h>
+#include <fe/mapping_collection.h>
+#include <fe/mapping_q.h>
+
+#include <fstream>
+
+
+template <int dim>
+void test ()
+{
+  hp::MappingCollection<dim> mapping_collection;
+  mapping_collection.push_back (MappingQ<dim>(2));
+  mapping_collection.push_back (MappingQ<dim>(1));
+}
+
+
+
+int main ()
+{
+  std::ofstream logfile("mapping_collection_02/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_02/cmp/generic b/tests/hp/mapping_collection_02/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.