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 52c7f86 commit a918a7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion swig/solver_cvodes.i
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ using namespace amici;

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

CVodeSolver(Solver const& solver) {
return new CVodeSolver(dynamic_cast<CVodeSolver const&>(solver));
Expand Down
4 changes: 3 additions & 1 deletion swig/solver_idas.i
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ using namespace amici;

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

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

0 comments on commit a918a7a

Please sign in to comment.