From: Wolfgang Bangerth Date: Mon, 19 Mar 2001 09:32:57 +0000 (+0000) Subject: doc update. X-Git-Tag: v8.0.0~19532 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66de4c10edd0d9dc8924f53067afd55a5e9f44f0;p=dealii.git doc update. git-svn-id: https://svn.dealii.org/trunk@4240 0785d39b-7218-0410-832d-ea1e28bc413d --- 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);