]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Try to always be on the safe side.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 2 May 2005 22:06:13 +0000 (22:06 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 2 May 2005 22:06:13 +0000 (22:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@10597 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/matrices.all_dimensions.cc

index 69463f6190720397eabdaaa3594b139752d79245..b960a42417de959b1e8229d2b4db73695745bf10 100644 (file)
@@ -541,8 +541,11 @@ apply_boundary_values (const std::map<unsigned int,double> &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<unsigned int,double> &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();
 

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.