From: Peter Munch Date: Wed, 14 Sep 2022 06:38:52 +0000 (+0200) Subject: Use ExcNeedsMPI X-Git-Tag: v9.5.0-rc1~967^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9a603460b897237fd24836ff1b79ddd279b97b3;p=dealii.git Use ExcNeedsMPI --- 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;