Error while using IDAKLUSolver #4006
-
Casadisolver is not good at controlling customed termination, so I tried IDAKLU solver. But there is always an error: RuntimeError: .../casadi/core/casadi_os.cpp:166: Assertion "handle!=nullptr" failed: Thanks!!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The code is:
|
Beta Was this translation helpful? Give feedback.
-
Hi, @leigedove – this looks like a similar error that we have been receiving on in #3783. The good thing is that there is a workaround available (mentioned in the linked thread but I'll mention it here too) where you can copy the relevant missing |
Beta Was this translation helpful? Give feedback.
Hi, @leigedove – this looks like a similar error that we have been receiving on in #3783. The good thing is that there is a workaround available (mentioned in the linked thread but I'll mention it here too) where you can copy the relevant missing
.so
files to thepybamm/solvers/
folder or the better way is to set theCASADIPATH
environment variable to where you have CasADi installed in your site-packages directory (which could be in a virtual environment or your conda/global environment).