############################################################
tests_x = hp_dof_handler \
- crash_*
+ crash_* \
+ q_collection_* \
+ mapping_collection_* \
+ fe_collection_*
# from above list of regular expressions, generate the real set of
# tests
--- /dev/null
+//---------------------------- fe_collection_01.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.
+//
+//---------------------------- fe_collection_01.cc ---------------------------
+
+
+// test that QCollection objects are copyable without running into
+// troubles when the copy is destroyed earlier than the original
+// object
+
+
+#include <base/logstream.h>
+#include <fe/fe_collection.h>
+#include <fe/fe_q.h>
+
+#include <fstream>
+
+
+template <int dim>
+void test ()
+{
+ hp::FECollection<dim> fe_collection;
+ fe_collection.push_back (FE_Q<dim>(2));
+ fe_collection.push_back (FE_Q<dim>(3));
+
+ // now create a copy and make sure
+ // it goes out of scope before the
+ // original
+ {
+ hp::FECollection<dim> copy (fe_collection);
+ }
+}
+
+
+
+int main ()
+{
+ std::ofstream logfile("fe_collection_01/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;
+}
--- /dev/null
+//---------------------------- mapping_collection_01.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_01.cc ---------------------------
+
+
+// test that MappingCollection objects are copyable without running into
+// troubles when the copy is destroyed earlier than the original
+// object
+
+
+#include <base/logstream.h>
+#include <fe/mapping_collection.h>
+#include <fe/mapping_q.h>
+#include <fe/mapping_q1.h>
+
+#include <fstream>
+
+
+template <int dim>
+void test ()
+{
+ hp::MappingCollection<dim> mapping_collection;
+ mapping_collection.push_back (MappingQ<dim>(2));
+ mapping_collection.push_back (MappingQ1<dim>());
+
+ // now create a copy and make sure
+ // it goes out of scope before the
+ // original
+ {
+ hp::MappingCollection<dim> copy (mapping_collection);
+ }
+}
+
+
+
+int main ()
+{
+ std::ofstream logfile("mapping_collection_01/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;
+}
--- /dev/null
+//---------------------------- q_collection_01.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.
+//
+//---------------------------- q_collection_01.cc ---------------------------
+
+
+// test that QCollection objects are copyable without running into
+// troubles when the copy is destroyed earlier than the original
+// object
+
+
+#include <base/logstream.h>
+#include <base/quadrature_lib.h>
+#include <fe/q_collection.h>
+
+#include <fstream>
+
+
+template <int dim>
+void test ()
+{
+ hp::QCollection<dim> q_collection;
+ q_collection.push_back (QGauss<dim>(2));
+ q_collection.push_back (QGauss<dim>(3));
+
+ // now create a copy and make sure
+ // it goes out of scope before the
+ // original
+ {
+ hp::QCollection<dim> copy (q_collection);
+ }
+}
+
+
+
+int main ()
+{
+ std::ofstream logfile("q_collection_01/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;
+}