]> https://gitweb.dealii.org/ - dealii.git/commitdiff
PETScWrappers::VectorBase: use a better assertion. 17469/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 12 Aug 2024 02:43:54 +0000 (20:43 -0600)
committerDavid Wells <drwells@email.unc.edu>
Mon, 12 Aug 2024 04:19:48 +0000 (22:19 -0600)
include/deal.II/lac/petsc_vector_base.h

index 37e70f7cf83a241dc0f0ddb427def65b184c87aa..964507c7e1c6459431513c8d7370601f6bf9fcc8 100644 (file)
@@ -1250,7 +1250,7 @@ namespace PETScWrappers
         while (input != indices_end)
           {
             const auto index = static_cast<PetscInt>(*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<PetscInt>(*input);
-            AssertDimension(index, *input);
+            AssertIntegerConversion(index, *input);
 
             Assert(index >= begin && index < end,
                    ExcMessage("You are accessing elements of a vector without "

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.