############################################################
# $Id$
-# Copyright (C) 2000, 2001, 2002, 2003, 2005 by the deal.II authors
+# Copyright (C) 2000, 2001, 2002, 2003, 2005, 2006 by the deal.II authors
############################################################
############################################################
############################################################
-tests_x = hp_dof_handler
+tests_x = hp_dof_handler \
+ crash_*
# from above list of regular expressions, generate the real set of
# tests
--- /dev/null
+//---------------------------- crash_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.
+//
+//---------------------------- crash_01.cc ---------------------------
+
+
+// check a crash in hp::DoFHandler<2>::reserve_space found 2/13/2006
+
+
+#include <base/logstream.h>
+#include <grid/tria.h>
+#include <grid/grid_generator.h>
+#include <grid/tria_accessor.h>
+#include <grid/grid_out.h>
+#include <fe/fe_dgq.h>
+#include <dofs/hp_dof_handler.h>
+
+#include <fstream>
+
+
+int main ()
+{
+ std::ofstream logfile("crash_01/output");
+ logfile.precision(2);
+
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+ deallog.threshold_double(1.e-10);
+
+ {
+ const unsigned int dim=2;
+ Triangulation<dim> tria;
+ GridGenerator::hyper_cube(tria);
+
+ hp::FECollection<dim> fe_collection;
+ fe_collection.add_fe (FE_DGQ<dim> (1));
+
+ hp::DoFHandler<dim> dof_handler(tria);
+ dof_handler.distribute_dofs(fe_collection);
+ }
+
+ {
+ const unsigned int dim=3;
+ Triangulation<dim> tria;
+ GridGenerator::hyper_cube(tria);
+
+ hp::FECollection<dim> fe_collection;
+ fe_collection.add_fe (FE_DGQ<dim> (1));
+
+ hp::DoFHandler<dim> dof_handler(tria);
+ dof_handler.distribute_dofs(fe_collection);
+ }
+
+ deallog << "OK" << std::endl;
+}