Skip to content

Commit

Permalink
Apply pre-commmit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayapreethi authored and actions-user committed Apr 17, 2024
1 parent 2b9da55 commit b488ea6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion interfaces/python/exago_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 16 additions & 17 deletions interfaces/python/exago_python_tcopflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// })
;
}

0 comments on commit b488ea6

Please sign in to comment.