From b9a603460b897237fd24836ff1b79ddd279b97b3 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Wed, 14 Sep 2022 08:38:52 +0200 Subject: [PATCH] Use ExcNeedsMPI --- include/deal.II/base/mpi.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index a33b7a55da..d460f1cab2 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -2212,9 +2212,7 @@ namespace Utilities const unsigned int mpi_tag) { # ifndef DEAL_II_WITH_MPI - Assert(false, - ExcMessage( - "This function is not useful when called without MPI.")); + Assert(false, ExcNeedsMPI()); (void)object; (void)communicator; (void)target_rank; @@ -2283,9 +2281,7 @@ namespace Utilities const unsigned int mpi_tag) { # ifndef DEAL_II_WITH_MPI - Assert(false, - ExcMessage( - "This function is not useful when called without MPI.")); + Assert(false, ExcNeedsMPI()); (void)communicator; (void)source_rank; (void)mpi_tag; -- 2.39.5