From 037b5501abe2e4ce2e960e0a364be430c85cd62b Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 31 May 2023 16:46:36 +0200 Subject: [PATCH] Add assertion regarding array lengths --- include/deal.II/matrix_free/fe_evaluation_data.h | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.5