From a918a7a01cb9ac4171bd7be15227f2b493d6137e Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 24 Jan 2024 11:59:36 +0100 Subject: [PATCH] .. --- swig/solver_cvodes.i | 4 +++- swig/solver_idas.i | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/swig/solver_cvodes.i b/swig/solver_cvodes.i index 1009ff669a..7e2c28a17e 100644 --- a/swig/solver_cvodes.i +++ b/swig/solver_cvodes.i @@ -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(solver)); diff --git a/swig/solver_idas.i b/swig/solver_idas.i index 9e8c522f00..7ec9f663bb 100644 --- a/swig/solver_idas.i +++ b/swig/solver_idas.i @@ -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(solver));