]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address @kronbichler's comments for #1825. 1844/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 6 Nov 2015 22:47:49 +0000 (16:47 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 6 Nov 2015 22:48:59 +0000 (16:48 -0600)
include/deal.II/numerics/data_out.h
source/numerics/data_out.cc

index 2cd05e13fd54ded70fb38e213aed719a652f0b20..23364561adc9f33c304cfa9fd4482b6506aa89e6 100644 (file)
@@ -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);
 };
index 3fbb828f2b0f033f651da53d3114a07cd2f63a09..2d835327d97cda4ce4f657a65e167a94a38b10c6 100644 (file)
@@ -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

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.