From: Martin Kronbichler Date: Wed, 31 May 2023 14:46:36 +0000 (+0200) Subject: Add assertion regarding array lengths X-Git-Tag: v9.5.0-rc1~175^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=037b5501abe2e4ce2e960e0a364be430c85cd62b;p=dealii.git Add assertion regarding array lengths --- diff --git a/include/deal.II/matrix_free/fe_evaluation_data.h b/include/deal.II/matrix_free/fe_evaluation_data.h index e7ec7754d1..20e2fb2ab2 100644 --- a/include/deal.II/matrix_free/fe_evaluation_data.h +++ b/include/deal.II/matrix_free/fe_evaluation_data.h @@ -1659,6 +1659,8 @@ namespace internal const VectorOfArrayType & array, ArrayType & out) { + AssertDimension(indices.size(), out.size()); + AssertDimension(indices.size(), array[0].size()); // set all entries in array to a valid element int index = 0; for (; index < N; ++index)