]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix tests/numerics/nonlinear_solver_selector_01 17225/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 8 Jul 2024 12:14:46 +0000 (08:14 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 9 Jul 2024 18:16:18 +0000 (14:16 -0400)
we should initialize MPI before make calls into sundials, otherwise we
might get runtime errors:

https://cdash.dealii.org/test/1390077

tests/numerics/nonlinear_solver_selector_01.cc

index 1fc75b2a9e47f249f7cbc22d4664cf40f94ff2d3..afae2cfe8b95622c5a2d95b9f4b609d5edebcb90 100644 (file)
@@ -386,8 +386,10 @@ namespace nonlinear_solver_selector_test
 
 
 int
-main()
+main(int argc, char *argv[])
 {
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
+
   initlog();
 
   using namespace nonlinear_solver_selector_test;

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.