* 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
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);
//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);
#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
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;