From: Martin Kronbichler Date: Mon, 1 Sep 2014 20:13:03 +0000 (+0200) Subject: Add assertion for row index in TrilinosWrappers::SparseMatrix::set/add X-Git-Tag: v8.2.0-rc1~167^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac6080137d79dbc964392b0eeb4a9c00a4f39b1;p=dealii.git Add assertion for row index in TrilinosWrappers::SparseMatrix::set/add --- diff --git a/include/deal.II/lac/trilinos_sparse_matrix.h b/include/deal.II/lac/trilinos_sparse_matrix.h index 5484aa62e6..e284f56029 100644 --- a/include/deal.II/lac/trilinos_sparse_matrix.h +++ b/include/deal.II/lac/trilinos_sparse_matrix.h @@ -2412,6 +2412,8 @@ namespace TrilinosWrappers const TrilinosScalar *values, const bool elide_zero_values) { + AssertIndexRange(row, this->m()); + int ierr; if (last_action == Add) { @@ -2641,6 +2643,7 @@ namespace TrilinosWrappers const bool elide_zero_values, const bool /*col_indices_are_sorted*/) { + AssertIndexRange(row, this->m()); int ierr; if (last_action == Insert) {