]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
doc update.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Mar 2001 09:32:57 +0000 (09:32 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Mar 2001 09:32:57 +0000 (09:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@4240 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out.cc

index 96942fdc64a469149b2584260b266c1f68ededb1..4090a09459fc698838a20116e6c3f34b54d5cbd5 100644 (file)
@@ -420,8 +420,13 @@ void DataOut<dim>::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<dim>  default_patch;
   default_patch.n_subdivisions = n_subdivisions;
   default_patch.data.reinit (n_datasets, n_q_points);

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.