]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Need to use only one dummy vector.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 27 Feb 2009 15:19:14 +0000 (15:19 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 27 Feb 2009 15:19:14 +0000 (15:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@18436 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_constraints.templates.h

index d237fe415cb273801ed0a2707f323b8f26645770..b54a167a98bf68975204678e41959685a40c8991 100644 (file)
@@ -33,8 +33,8 @@ ConstraintMatrix::condense (const SparseMatrix<number> &uncondensed,
 {
                                   // create two dummy vectors and enter the
                                   // other function
-  Vector<number> in (0), out(0);
-  condense (uncondensed, in, condensed, out);
+  Vector<number> dummy (0);
+  condense (uncondensed, dummy, condensed, dummy);
 }
 
 
@@ -805,9 +805,9 @@ distribute_local_to_global (const FullMatrix<double>        &local_matrix,
                             const std::vector<unsigned int> &local_dof_indices,
                             MatrixType                      &global_matrix) const
 {
-  Vector<double> local_dummy(0), global_dummy (0);
-  distribute_local_to_global (local_matrix, local_dummy, local_dof_indices,
-                             global_matrix, global_dummy);
+  Vector<double> dummy(0);
+  distribute_local_to_global (local_matrix, dummy, local_dof_indices,
+                             global_matrix, dummy);
 }
 
 

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.