]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a parameter a reference, rather than a value, in the same spirit as Ralf's chang...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 17 Feb 2006 17:36:48 +0000 (17:36 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 17 Feb 2006 17:36:48 +0000 (17:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@12398 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_out_faces.h
deal.II/deal.II/include/numerics/data_out_rotation.h
deal.II/deal.II/source/numerics/data_out_faces.cc
deal.II/deal.II/source/numerics/data_out_rotation.cc

index 959c713902bc6b8849a31ed8d736ab68ce6f8d54..42689e63867ee8c4b0fda3acb8cf90a3ab584aab 100644 (file)
@@ -207,7 +207,7 @@ class DataOutFaces : public DataOut_DoFData<dim,DH,dim-1,dim>
                                      * used, the function is called
                                      * once and generates all patches.
                                      */
-    void build_some_patches (Data data);
+    void build_some_patches (Data &data);
 };
 
 
index 6a6ec57dfc4cf4bb19036d07629d48c2dcf8ac08..f419c548d17a5bb5371e4f40524becd350fb2525 100644 (file)
@@ -198,13 +198,13 @@ class DataOutRotation : public DataOut_DoFData<dim,DH,dim+1>
                                      * used, the function is called
                                      * once and generates all patches.
                                      */
-    void build_some_patches (Data data);
+    void build_some_patches (Data &data);
 };
 
 
 /* -------------- declaration of explicit specializations ------------- */
 
-template <> void DataOutRotation<3,DoFHandler>::build_some_patches (Data);
+template <> void DataOutRotation<3,DoFHandler>::build_some_patches (Data &);
 
 
 #endif
index 94bec6260833aeef21cfb591e8b6834ae54413f1..7b59a4f3c594a551882f400867eeb9cfe02c7266 100644 (file)
@@ -30,7 +30,7 @@
 
 
 template <int dim, template <int> class DH>
-void DataOutFaces<dim,DH>::build_some_patches (Data data)
+void DataOutFaces<dim,DH>::build_some_patches (Data &data)
 {
   QTrapez<1>        q_trapez;
   QIterated<dim-1>  patch_points (q_trapez, data.n_subdivisions);
index 587669fe321962dddd14176ed56f25cbaab1d2e5..f3ab44de1d1d563c7779f4cb111464f4a1cd9956 100644 (file)
@@ -33,7 +33,7 @@
 //TODO: Unify code for dimensions
 
 template <int dim, template <int> class DH>
-void DataOutRotation<dim,DH>::build_some_patches (Data data)
+void DataOutRotation<dim,DH>::build_some_patches (Data &data)
 {
   QTrapez<1>     q_trapez;
   QIterated<dim> patch_points (q_trapez, data.n_subdivisions);
@@ -292,7 +292,7 @@ void DataOutRotation<dim,DH>::build_some_patches (Data data)
 #if deal_II_dimension == 3
 
 template <>
-void DataOutRotation<3,DoFHandler>::build_some_patches (Data)
+void DataOutRotation<3,DoFHandler>::build_some_patches (Data &)
 {
                                   // would this function make any
                                   // sense after all? who would want
@@ -381,7 +381,7 @@ void DataOutRotation<dim,DH>::build_patches (const unsigned int n_patches_per_ci
 
   if (DEAL_II_USE_MT)
     {
-      void (DataOutRotation<dim,DH>::*p) (Data)
+      void (DataOutRotation<dim,DH>::*p) (Data &)
         = &DataOutRotation<dim,DH>::build_some_patches;
 
       Threads::ThreadGroup<> threads;

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.