]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a missing MPI_InitFinalize. 13786/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 23 May 2022 02:55:47 +0000 (22:55 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 23 May 2022 02:55:47 +0000 (22:55 -0400)
This is now required in SUNDIALS 6 since SUNContext objects duplicate MPI
communicators.

tests/sundials/arkode_08.cc

index f10fdf9d49d454c985be0d98cf5849a33338439f..3dfa856ef301808999eac9e0176c9f8959222779 100644 (file)
@@ -51,6 +51,9 @@ main(int argc, char **argv)
 {
   initlog();
 
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(
+    argc, argv, numbers::invalid_unsigned_int);
+
   using VectorType = Vector<double>;
 
   ParameterHandler                             prm;

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.