diff --git a/AUTHORS.txt b/AUTHORS.txt index 2f956f1b169b71a921ce888d84a0d7f915891f51..3f808a99d12fa5eeaf72fd9da6581ba46b2a0455 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -31,6 +31,7 @@ Matthias Markl Michael Kuron Nils Kohl Paulo Carvalho +Philipp Suffa Regina Ammer Sagar Dolas Sebastian Eibl diff --git a/src/python_coupling/PythonCallback.cpp b/src/python_coupling/PythonCallback.cpp index 61ef6a1cc9f4a76fba5850574404af8ea95a526e..922b1dedd727f041583e261fff12ddd9bf455cc8 100644 --- a/src/python_coupling/PythonCallback.cpp +++ b/src/python_coupling/PythonCallback.cpp @@ -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");