Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jan 24, 2024
1 parent 1d6e3d7 commit 52c7f86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swig/solver_cvodes.i
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ using namespace amici;

// Required with SWIG 4.2.0 https://github.com/AMICI-dev/AMICI/issues/2275
%extend amici::CVodeSolver {
CVodeSolver() : Solver() {}

CVodeSolver(Solver const& solver) {
return new CVodeSolver(dynamic_cast<CVodeSolver const&>(solver));
}
Expand Down
2 changes: 2 additions & 0 deletions swig/solver_idas.i
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ using namespace amici;

// Required for SWIG 4.2.0 https://github.com/AMICI-dev/AMICI/issues/2275
%extend amici::IDASolver {
IDASolver() : Solver() {}

IDASolver(Solver const& solver) {
return new IDASolver(dynamic_cast<IDASolver const&>(solver));
}
Expand Down

0 comments on commit 52c7f86

Please sign in to comment.