]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't copy all data. Give reference to data instead.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 17 Feb 2006 14:35:52 +0000 (14:35 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 17 Feb 2006 14:35:52 +0000 (14:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@12396 0785d39b-7218-0410-832d-ea1e28bc413d

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

index c9a3825e70e0b22d188744cfa73674834769d66e..21bed58878d62654da0c280f822f6100c47067d7 100644 (file)
@@ -1014,7 +1014,7 @@ class DataOut : public DataOut_DoFData<dim,DH,dim>
                                      * used, the function is called
                                      * once and generates all patches.
                                      */
-    void build_some_patches (Data data);
+    void build_some_patches (Data &data);
 };
 
 
index a29001ef2548821602087f56fff6fc6dd83d0cde..9e09dbf3e95b4696c892e4a807dd22f4341160ec 100644 (file)
@@ -383,7 +383,7 @@ DataOut_DoFData<dof_handler_dim,DH,patch_dim,patch_space_dim>::memory_consumptio
 
 
 template <int dim, template <int> class DH>
-void DataOut<dim,DH>::build_some_patches (Data data)
+void DataOut<dim,DH>::build_some_patches (Data &data)
 {
   QTrapez<1>     q_trapez;
   QIterated<dim> patch_points (q_trapez, data.n_subdivisions);

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.