From 6cca2e8b3b2bc012294ccba6b7c46691b5ad3ae3 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 11 Aug 2024 20:43:54 -0600 Subject: [PATCH] PETScWrappers::VectorBase: use a better assertion. --- include/deal.II/lac/petsc_vector_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/lac/petsc_vector_base.h b/include/deal.II/lac/petsc_vector_base.h index 37e70f7cf8..964507c7e1 100644 --- a/include/deal.II/lac/petsc_vector_base.h +++ b/include/deal.II/lac/petsc_vector_base.h @@ -1250,7 +1250,7 @@ namespace PETScWrappers while (input != indices_end) { const auto index = static_cast(*input); - AssertDimension(index, *input); + AssertIntegerConversion(index, *input); if (index >= begin && index < end) { // local entry @@ -1293,7 +1293,7 @@ namespace PETScWrappers while (input != indices_end) { const auto index = static_cast(*input); - AssertDimension(index, *input); + AssertIntegerConversion(index, *input); Assert(index >= begin && index < end, ExcMessage("You are accessing elements of a vector without " -- 2.39.5