diff --git a/interfaces/python/exago_python.cpp b/interfaces/python/exago_python.cpp index 79fc4ecb..3c26b702 100644 --- a/interfaces/python/exago_python.cpp +++ b/interfaces/python/exago_python.cpp @@ -64,7 +64,7 @@ PYBIND11_MODULE(exago, m) { extern void init_exago_sopflow(pybind11::module & m); init_exago_sopflow(m); - + extern void init_exago_tcopflow(pybind11::module & m); init_exago_tcopflow(m); #endif diff --git a/interfaces/python/exago_python_tcopflow.cpp b/interfaces/python/exago_python_tcopflow.cpp index 545576e3..1e18dc90 100644 --- a/interfaces/python/exago_python_tcopflow.cpp +++ b/interfaces/python/exago_python_tcopflow.cpp @@ -36,23 +36,22 @@ void init_exago_tcopflow(pybind11::module &m) { ierr = TCOPFLOWSetTolerance(w.tcopf, tol); ExaGOCheckError(ierr); }) - .def("get_tolerance", - [](TCOPFLOW_wrapper &w) -> double { - PetscErrorCode ierr; - double tol; - ierr = TCOPFLOWGetTolerance(w.tcopf, &tol); - ExaGOCheckError(ierr); - return tol; - }); + .def("get_tolerance", [](TCOPFLOW_wrapper &w) -> double { + PetscErrorCode ierr; + double tol; + ierr = TCOPFLOWGetTolerance(w.tcopf, &tol); + ExaGOCheckError(ierr); + return tol; + }); - /* Setters */ + /* Setters */ - // Example - // .def("set_model", - // [](SOPFLOW_wrapper &w, std::string model) { - // PetscErrorCode ierr; - // ierr = SOPFLOWSetModel(w.sopf, model.c_str()); - // ExaGOCheckError(ierr); - // }) - ; + // Example + // .def("set_model", + // [](SOPFLOW_wrapper &w, std::string model) { + // PetscErrorCode ierr; + // ierr = SOPFLOWSetModel(w.sopf, model.c_str()); + // ExaGOCheckError(ierr); + // }) + ; }