From b3a8d1bde577d516e0d38688c9ab291c2f012b21 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Mon, 22 Mar 2021 18:05:53 +0100 Subject: [PATCH] MF::check_vector_compatibility(): improve asser message --- include/deal.II/matrix_free/vector_access_internal.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/deal.II/matrix_free/vector_access_internal.h b/include/deal.II/matrix_free/vector_access_internal.h index 1874593d61..ce6c281e22 100644 --- a/include/deal.II/matrix_free/vector_access_internal.h +++ b/include/deal.II/matrix_free/vector_access_internal.h @@ -201,8 +201,11 @@ namespace internal ExcMessage( "The parallel layout of the given vector is not " "compatible with the parallel partitioning in MatrixFree. " - "Use MatrixFree::initialize_dof_vector to get a " - "compatible vector.")); + "A potential reason is that you did not use " + "MatrixFree::initialize_dof_vector() to get a " + "compatible vector. If you did, the dof_handler_index " + "used there and the one passed to the constructor of " + "FEEvaluation do not match.")); } -- 2.39.5