From: David Wells Date: Fri, 3 Jun 2022 15:28:16 +0000 (-0400) Subject: Initialize MPI with step-77. X-Git-Tag: v9.4.0-rc1~71^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79883bf93a61cdb605fcff1f80b352047f356da7;p=dealii.git Initialize MPI with step-77. SUNDIALS duplicates communicators even in serial. --- diff --git a/examples/step-77/step-77.cc b/examples/step-77/step-77.cc index 3f8a5bc379..38c5559a73 100644 --- a/examples/step-77/step-77.cc +++ b/examples/step-77/step-77.cc @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -640,11 +641,19 @@ namespace Step77 } // namespace Step77 -int main() +int main(int argc, char **argv) { try { using namespace Step77; +#ifdef DEAL_II_WITH_MPI + dealii::Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, + argv, + 1); +#else + (void)argc; + (void)argv; +#endif MinimalSurfaceProblem<2> laplace_problem_2d; laplace_problem_2d.run();