From: Wolfgang Bangerth Date: Fri, 9 Feb 2024 23:22:32 +0000 (-0700) Subject: Fix the name by which we reference an exception class. X-Git-Tag: relicensing~55^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=603ba801f11766debb3b27bfba6763771b84a774;p=dealii.git Fix the name by which we reference an exception class. --- diff --git a/include/deal.II/lac/trilinos_tpetra_vector.templates.h b/include/deal.II/lac/trilinos_tpetra_vector.templates.h index eed13a0575..56a606da5a 100644 --- a/include/deal.II/lac/trilinos_tpetra_vector.templates.h +++ b/include/deal.II/lac/trilinos_tpetra_vector.templates.h @@ -55,19 +55,21 @@ namespace LinearAlgebra static_cast(index)); # if DEAL_II_TRILINOS_VERSION_GTE(14, 0, 0) - Assert((local_index != Teuchos::OrdinalTraits::invalid()), - ExcAccessToNonLocalElement( - index, - vector.vector->getMap()->getLocalNumElements(), - vector.vector->getMap()->getMinLocalIndex(), - vector.vector->getMap()->getMaxLocalIndex())); + Assert( + (local_index != Teuchos::OrdinalTraits::invalid()), + (typename Vector::ExcAccessToNonLocalElement( + index, + vector.vector->getMap()->getLocalNumElements(), + vector.vector->getMap()->getMinLocalIndex(), + vector.vector->getMap()->getMaxLocalIndex()))); # else - Assert((local_index != Teuchos::OrdinalTraits::invalid()), - ExcAccessToNonLocalElement( - index, - vector.vector->getMap()->getNodeNumElements(), - vector.vector->getMap()->getMinLocalIndex(), - vector.vector->getMap()->getMaxLocalIndex())); + Assert( + (local_index != Teuchos::OrdinalTraits::invalid()), + (typename Vector::ExcAccessToNonLocalElement( + index, + vector.vector->getMap()->getNodeNumElements(), + vector.vector->getMap()->getMinLocalIndex(), + vector.vector->getMap()->getMaxLocalIndex()))); # endif return vector.vector->getData()[local_index]; }