<h3>Specific improvements</h3>
<ol>
+ <li> Fixed: Serializing an object of type DoFHandler did not work without
+ including additional header files.
+ <br>
+ (David Wells, Wolfgang Bangerth, 2014/11/26)
+ </li>
+
<li> New: The class FEEvaluation with its fast tensor evaluation routines
can now be initialized from a mapping, a finite element, a quadrature, and
update flags on the fly similar to FEValues. This provides an alternative
// ---------------------------------------------------------------------
//
-// Copyright (C) 2006 - 2013 by the deal.II authors
+// Copyright (C) 2006 - 2014 by the deal.II authors
//
// This file is part of the deal.II library.
//
DEAL_II_NAMESPACE_OPEN
-template <int, int> class DoFHandler;
-template <int, int> class MGDoFHandler;
-
namespace internal
{
/**
#include <deal.II/dofs/block_info.h>
#include <deal.II/dofs/dof_iterator_selector.h>
#include <deal.II/dofs/number_cache.h>
+#include <deal.II/dofs/dof_faces.h>
+#include <deal.II/dofs/dof_levels.h>
#include <deal.II/dofs/function_map.h>
#include <boost/serialization/split_member.hpp>
{
namespace DoFHandler
{
- template <int dim> class DoFLevel;
- template <int dim> class DoFFaces;
-
struct Implementation;
namespace Policy
// ---------------------------------------------------------------------
//
-// Copyright (C) 1998 - 2013 by the deal.II authors
+// Copyright (C) 1998 - 2014 by the deal.II authors
//
// This file is part of the deal.II library.
//
DEAL_II_NAMESPACE_OPEN
-template <int, int> class DoFHandler;
-template <int, int> class MGDoFHandler;
-
namespace internal
{
--- /dev/null
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2014 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+
+// Test an issue reported by David Wells: serializing a DoFHandler object did
+// not work right out of the box without manually including additional header
+// files
+
+#include "../tests.h"
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/fe/fe_q.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/grid_out.h>
+
+#include <boost/archive/text_oarchive.hpp>
+
+#include <iostream>
+#include <fstream>
+#include <string>
+#include <fstream>
+
+
+int main ()
+{
+ std::ofstream logfile("output");
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+ deallog.threshold_double(1.e-10);
+
+ Triangulation<2> triangulation;
+ GridGenerator::hyper_cube (triangulation);
+ triangulation.refine_global (4);
+ DoFHandler<2> dof_handler (triangulation);
+ FE_Q<2> finite_element (1);
+ dof_handler.distribute_dofs (finite_element);
+
+ std::ostringstream out_stream;
+ boost::archive::text_oarchive archive(out_stream);
+
+ archive << dof_handler;
+ dof_handler.clear ();
+
+ deallog << "OK" << std::endl;
+}