From 03f60962b24bfd9dad5e49b9d1b45eb24d3af5b9 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Fri, 22 Apr 2022 13:11:00 +0200
Subject: [PATCH] [test][nonlinear] Use Dumux::initialize

---
 test/nonlinear/newton/test_newton.cc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/nonlinear/newton/test_newton.cc b/test/nonlinear/newton/test_newton.cc
index 23f631a92a..07bf3285a0 100644
--- a/test/nonlinear/newton/test_newton.cc
+++ b/test/nonlinear/newton/test_newton.cc
@@ -7,8 +7,9 @@
 
 #include <dune/common/exceptions.hh>
 #include <dune/common/float_cmp.hh>
-#include <dune/common/parallel/mpihelper.hh>
 #include <dune/istl/bvector.hh>
+
+#include <dumux/common/initialize.hh>
 #include <dumux/nonlinear/newtonsolver.hh>
 
 /*
@@ -78,8 +79,8 @@ int main(int argc, char* argv[])
 {
     using namespace Dumux;
 
-    // maybe initialize MPI
-    Dune::MPIHelper::instance(argc, argv);
+    // maybe initialize MPI and/or multithreading backend
+    Dumux::initialize(argc, argv);
 
     // use the Newton solver to find a solution to a scalar equation
     using Assembler = MockScalarAssembler;
-- 
GitLab