From 754c8b4d2d56c3681082ff5a65686c89d0ed939a Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 2 May 2005 22:06:13 +0000 Subject: [PATCH] Try to always be on the safe side. git-svn-id: https://svn.dealii.org/trunk@10597 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/source/numerics/matrices.all_dimensions.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); -- 2.39.5