]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use ExcNeedsMPI 14269/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 14 Sep 2022 06:38:52 +0000 (08:38 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 14 Sep 2022 06:38:52 +0000 (08:38 +0200)
include/deal.II/base/mpi.h

index a33b7a55da4b063b99bca7b810b28768b1f16528..d460f1cab237a12e1859828364b5770c9c5caf59 100644 (file)
@@ -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;

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.