Skip to content
Snippets Groups Projects
Commit a15af5f3 authored by Timo Koch's avatar Timo Koch
Browse files

[test][geomechanics] Use Dumux::initialize

parent c7859d6c
No related branches found
No related tags found
1 merge request!2909Feature/multithreaded assembly using a coloring scheme
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "properties.hh" #include "properties.hh"
#include <dumux/common/initialize.hh>
#include <dumux/common/properties.hh> #include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh> #include <dumux/common/parameters.hh>
#include <dumux/common/dumuxmessage.hh> #include <dumux/common/dumuxmessage.hh>
...@@ -58,8 +59,9 @@ int main(int argc, char** argv) ...@@ -58,8 +59,9 @@ int main(int argc, char** argv)
// stop time for the entire computation // stop time for the entire computation
Dune::Timer timer; Dune::Timer timer;
// initialize MPI, finalize is done automatically on exit // maybe initialize MPI and/or multithreading backend
const auto& mpiHelper = Dune::MPIHelper::instance(argc, argv); initialize(argc, argv);
const auto& mpiHelper = Dune::MPIHelper::instance();
// print dumux start message // print dumux start message
if (mpiHelper.rank() == 0) if (mpiHelper.rank() == 0)
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "properties.hh" #include "properties.hh"
#include <dumux/common/initialize.hh>
#include <dumux/common/properties.hh> #include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh> #include <dumux/common/parameters.hh>
#include <dumux/common/dumuxmessage.hh> #include <dumux/common/dumuxmessage.hh>
...@@ -100,8 +101,9 @@ int main(int argc, char** argv) ...@@ -100,8 +101,9 @@ int main(int argc, char** argv)
// stop time for the entire computation // stop time for the entire computation
Dune::Timer timer; Dune::Timer timer;
// initialize MPI, finalize is done automatically on exit // maybe initialize MPI and/or multithreading backend
const auto& mpiHelper = Dune::MPIHelper::instance(argc, argv); initialize(argc, argv);
const auto& mpiHelper = Dune::MPIHelper::instance();
// print dumux start message // print dumux start message
if (mpiHelper.rank() == 0) if (mpiHelper.rank() == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment