]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add one security check.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Jul 1998 16:42:11 +0000 (16:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Jul 1998 16:42:11 +0000 (16:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@442 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e0fd60f975c2d60b78dddc081e5334d3b9288b64..f25cffd6d279a8211ab2dc14cbb78f9c70d131e3 100644 (file)
@@ -347,6 +347,8 @@ void MatrixTools<dim>::apply_boundary_values (const map<int,double> &boundary_va
          ExcDimensionsDontMatch(matrix.n(), matrix.m()));
   Assert (matrix.n() == right_hand_side.size(),
          ExcDimensionsDontMatch(matrix.n(), right_hand_side.size()));
+  Assert (matrix.n() == solution.size(),
+         ExcDimensionsDontMatch(matrix.n(), solution.size()));
                                   // if no boundary values are to be applied
                                   // simply return
   if (boundary_values.size() == 0)

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.