From 64c75f61122e5788badbd401e408d7c3f5d9c02b Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 19 Mar 2001 09:32:57 +0000 Subject: [PATCH] doc update. git-svn-id: https://svn.dealii.org/trunk@4240 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_out.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_out.cc b/deal.II/deal.II/source/numerics/data_out.cc index 96942fdc64..4090a09459 100644 --- a/deal.II/deal.II/source/numerics/data_out.cc +++ b/deal.II/deal.II/source/numerics/data_out.cc @@ -420,8 +420,13 @@ void DataOut::build_patches (const unsigned int n_subdivisions, thread_data[i].patch_values_system[k].reinit(n_components); } - // create the patches with - // default values + // create the patches with default + // values. allocate as many patches + // as are needed, as this reduces + // expensive copying when push_back + // or similar operations are used + // which would regularly overflow + // the allocated amount of memory DataOutBase::Patch default_patch; default_patch.n_subdivisions = n_subdivisions; default_patch.data.reinit (n_datasets, n_q_points); -- 2.39.5