From: wolf Date: Mon, 2 May 2005 22:06:13 +0000 (+0000) Subject: Try to always be on the safe side. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754c8b4d2d56c3681082ff5a65686c89d0ed939a;p=dealii-svn.git Try to always be on the safe side. git-svn-id: https://svn.dealii.org/trunk@10597 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc b/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc index 69463f6190..b960a42417 100644 --- a/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc +++ b/deal.II/deal.II/source/numerics/matrices.all_dimensions.cc @@ -541,8 +541,11 @@ apply_boundary_values (const std::map &boundary_values, // we have to read and write from this // matrix (in this order). this will only // work if we compress the matrix first, - // done here: + // done here. do the same with the other + // objects just to be on the safe side: matrix.compress (); + solution.compress (); + right_hand_side.compress (); const unsigned int n_dofs = matrix.m(); @@ -666,8 +669,11 @@ apply_boundary_values (const std::map &boundary_values, // we have to read and write from this // matrix (in this order). this will only // work if we compress the matrix first, - // done here: + // done here. do the same with the other + // objects just to be on the safe side: matrix.compress (); + solution.compress (); + right_hand_side.compress (); const unsigned int n_dofs = matrix.m();