From: David Wells Date: Mon, 12 Aug 2024 02:43:54 +0000 (-0600) Subject: PETScWrappers::VectorBase: use a better assertion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17469%2Fhead;p=dealii.git PETScWrappers::VectorBase: use a better assertion. --- 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 "