From: Wolfgang Bangerth Date: Fri, 10 Jul 1998 16:42:11 +0000 (+0000) Subject: Add one security check. X-Git-Tag: v8.0.0~22812 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f925239e938bd853eebc82d3ecbf2f33ed3f4d59;p=dealii.git Add one security check. git-svn-id: https://svn.dealii.org/trunk@442 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/matrices.cc b/deal.II/deal.II/source/numerics/matrices.cc index e0fd60f975..f25cffd6d2 100644 --- a/deal.II/deal.II/source/numerics/matrices.cc +++ b/deal.II/deal.II/source/numerics/matrices.cc @@ -347,6 +347,8 @@ void MatrixTools::apply_boundary_values (const map &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)