From: Martin Kronbichler Date: Fri, 18 May 2018 13:13:47 +0000 (+0200) Subject: Fix out-of-range access with GLIBCXX_DEBUG. X-Git-Tag: v9.1.0-rc1~1124^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a0e82ad933acfa9c77d0d58ac4f581585b79798;p=dealii.git Fix out-of-range access with GLIBCXX_DEBUG. --- diff --git a/include/deal.II/matrix_free/matrix_free.templates.h b/include/deal.II/matrix_free/matrix_free.templates.h index 5a53486862..b70ca7b93f 100644 --- a/include/deal.II/matrix_free/matrix_free.templates.h +++ b/include/deal.II/matrix_free/matrix_free.templates.h @@ -1174,7 +1174,8 @@ void MatrixFree::initialize_indices std::vector hard_vectorization_boundary(task_info.face_partition_data.size(), false); - if (task_info.scheme == internal::MatrixFreeFunctions::TaskInfo::none) + if (task_info.scheme == internal::MatrixFreeFunctions::TaskInfo::none && + task_info.partition_row_index[2] < task_info.face_partition_data.size()) hard_vectorization_boundary[task_info.partition_row_index[2]] = true; else for (unsigned int i=0; i