From 2d2117971a7b4bff6cb2f41512878b8204ee22c8 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@math.tamu.edu>
Date: Fri, 6 Nov 2015 16:47:49 -0600
Subject: [PATCH] Address @kronbichler's comments for #1825.

---
 include/deal.II/numerics/data_out.h | 1 -
 source/numerics/data_out.cc         | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/include/deal.II/numerics/data_out.h b/include/deal.II/numerics/data_out.h
index 2cd05e13fd..23364561ad 100644
--- a/include/deal.II/numerics/data_out.h
+++ b/include/deal.II/numerics/data_out.h
@@ -294,7 +294,6 @@ private:
   void build_one_patch (const std::pair<cell_iterator, unsigned int>                         *cell_and_index,
                         internal::DataOut::ParallelData<DH::dimension, DH::space_dimension>  &scratch_data,
                         const unsigned int                                                    n_subdivisions,
-                        const unsigned int                                                    n_datasets,
                         const CurvedCellRegion                                                curved_cell_region,
                         std::vector<DataOutBase::Patch<DH::dimension, DH::space_dimension> > &patches);
 };
diff --git a/source/numerics/data_out.cc b/source/numerics/data_out.cc
index 3fbb828f2b..2d835327d9 100644
--- a/source/numerics/data_out.cc
+++ b/source/numerics/data_out.cc
@@ -65,16 +65,12 @@ DataOut<dim,DH>::
 build_one_patch (const std::pair<cell_iterator, unsigned int>                         *cell_and_index,
                  internal::DataOut::ParallelData<DH::dimension, DH::space_dimension>  &scratch_data,
                  const unsigned int                                                    n_subdivisions,
-                 const unsigned int                                                    n_datasets,
                  const CurvedCellRegion                                                curved_cell_region,
                  std::vector<DataOutBase::Patch<DH::dimension, DH::space_dimension> > &patches)
 {
   // first create the output object that we will write into
   ::dealii::DataOutBase::Patch<DH::dimension, DH::space_dimension> patch;
   patch.n_subdivisions = n_subdivisions;
-  patch.data.reinit (n_datasets,
-                     Utilities::fixed_power<DH::dimension>(n_subdivisions+1));
-
 
   // use ucd_to_deal map as patch vertices are in the old, unnatural
   // ordering. if the mapping does not preserve locations
@@ -458,7 +454,6 @@ void DataOut<dim,DH>::build_patches (const Mapping<DH::dimension,DH::space_dimen
                                         copy data object -- it just writes everything right into the
                                         output array */
                                      n_subdivisions,
-                                     n_datasets,
                                      curved_cell_region,
                                      std_cxx11::ref(this->patches)),
                      // no copy-local-to-global function needed here
-- 
2.39.5