]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the name by which we reference an exception class. 16620/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 9 Feb 2024 23:22:32 +0000 (16:22 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 9 Feb 2024 23:22:47 +0000 (16:22 -0700)
include/deal.II/lac/trilinos_tpetra_vector.templates.h

index eed13a0575f616c3786b9b9d77c8590d1e075429..56a606da5acae9e0851aa504d4f6f367db9ccf9f 100644 (file)
@@ -55,19 +55,21 @@ namespace LinearAlgebra
             static_cast<TrilinosWrappers::types::int_type>(index));
 
 #  if DEAL_II_TRILINOS_VERSION_GTE(14, 0, 0)
-        Assert((local_index != Teuchos::OrdinalTraits<int>::invalid()),
-               ExcAccessToNonLocalElement(
-                 index,
-                 vector.vector->getMap()->getLocalNumElements(),
-                 vector.vector->getMap()->getMinLocalIndex(),
-                 vector.vector->getMap()->getMaxLocalIndex()));
+        Assert(
+          (local_index != Teuchos::OrdinalTraits<int>::invalid()),
+          (typename Vector<Number, MemorySpace>::ExcAccessToNonLocalElement(
+            index,
+            vector.vector->getMap()->getLocalNumElements(),
+            vector.vector->getMap()->getMinLocalIndex(),
+            vector.vector->getMap()->getMaxLocalIndex())));
 #  else
-        Assert((local_index != Teuchos::OrdinalTraits<int>::invalid()),
-               ExcAccessToNonLocalElement(
-                 index,
-                 vector.vector->getMap()->getNodeNumElements(),
-                 vector.vector->getMap()->getMinLocalIndex(),
-                 vector.vector->getMap()->getMaxLocalIndex()));
+        Assert(
+          (local_index != Teuchos::OrdinalTraits<int>::invalid()),
+          (typename Vector<Number, MemorySpace>::ExcAccessToNonLocalElement(
+            index,
+            vector.vector->getMap()->getNodeNumElements(),
+            vector.vector->getMap()->getMinLocalIndex(),
+            vector.vector->getMap()->getMaxLocalIndex())));
 #  endif
         return vector.vector->getData()[local_index];
       }

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.