diff --git a/swig/solver_cvodes.i b/swig/solver_cvodes.i index 200c5fb6f0..1009ff669a 100644 --- a/swig/solver_cvodes.i +++ b/swig/solver_cvodes.i @@ -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(solver)); } diff --git a/swig/solver_idas.i b/swig/solver_idas.i index 2a195ab239..9e8c522f00 100644 --- a/swig/solver_idas.i +++ b/swig/solver_idas.i @@ -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(solver)); }