From: kronbichler Date: Fri, 27 Feb 2009 15:19:14 +0000 (+0000) Subject: Need to use only one dummy vector. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91230e5b9ff11b7cdd47f3e7d63cf5c84c4b5ffe;p=dealii-svn.git Need to use only one dummy vector. git-svn-id: https://svn.dealii.org/trunk@18436 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_constraints.templates.h b/deal.II/deal.II/include/dofs/dof_constraints.templates.h index d237fe415c..b54a167a98 100644 --- a/deal.II/deal.II/include/dofs/dof_constraints.templates.h +++ b/deal.II/deal.II/include/dofs/dof_constraints.templates.h @@ -33,8 +33,8 @@ ConstraintMatrix::condense (const SparseMatrix &uncondensed, { // create two dummy vectors and enter the // other function - Vector in (0), out(0); - condense (uncondensed, in, condensed, out); + Vector dummy (0); + condense (uncondensed, dummy, condensed, dummy); } @@ -805,9 +805,9 @@ distribute_local_to_global (const FullMatrix &local_matrix, const std::vector &local_dof_indices, MatrixType &global_matrix) const { - Vector local_dummy(0), global_dummy (0); - distribute_local_to_global (local_matrix, local_dummy, local_dof_indices, - global_matrix, global_dummy); + Vector dummy(0); + distribute_local_to_global (local_matrix, dummy, local_dof_indices, + global_matrix, dummy); }