Skip to content
Snippets Groups Projects
Commit 8d7eb1ac authored by Michael Zikeli's avatar Michael Zikeli
Browse files

Merge branch walberla:master into master

parents b6faabd9 4bcc110e
No related merge requests found
Pipeline #73987 passed with stages
in 9 hours
......@@ -31,6 +31,7 @@ Matthias Markl
Michael Kuron
Nils Kohl
Paulo Carvalho
Philipp Suffa
Regina Ammer
Sagar Dolas
Sebastian Eibl
......
......@@ -87,10 +87,11 @@ namespace python_coupling {
PythonCallback::PythonCallback( const std::string & fileOrModuleName, const std::string & functionName, const std::vector<std::string> & argv )
: functionName_( functionName ), exposedVars_( new DictWrapper() ), callbackDict_( new DictWrapper() )
: functionName_( functionName )
{
Manager::instance()->triggerInitialization();
exposedVars_ = make_shared<DictWrapper>();
callbackDict_ = make_shared<DictWrapper>();
namespace py = pybind11;
// Add empty callbacks module
......@@ -102,10 +103,11 @@ namespace python_coupling {
PythonCallback::PythonCallback( const std::string & functionName )
: functionName_( functionName ), exposedVars_( new DictWrapper() ), callbackDict_( new DictWrapper() )
: functionName_( functionName )
{
Manager::instance()->triggerInitialization();
exposedVars_ = make_shared<DictWrapper>();
callbackDict_ = make_shared<DictWrapper>();
// Add empty callbacks module
py::object callbackModule = py::module::import( "walberla_cpp.callbacks");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment