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

[python] Use Dumux::initialize

parent 64777a0b
No related branches found
No related tags found
1 merge request!2909Feature/multithreaded assembly using a coloring scheme
......@@ -20,6 +20,7 @@
#include <dune/python/pybind11/pybind11.h>
#include <dune/python/pybind11/stl.h>
#include <dumux/common/initialize.hh>
#include <dumux/common/parameters.hh>
#include <dumux/python/common/timeloop.hh>
......@@ -28,6 +29,11 @@ PYBIND11_MODULE(_common, module)
using namespace Dumux;
using pybind11::operator""_a;
// maybe initialize MPI and/or multithreading backend
int argc = 0;
char **argv = NULL;
Dumux::initialize(argc, argv);
// export time loop
Python::registerTimeLoop<double>(module);
......
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