-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onemkl linear solver doesn't have a default difference quotient jacobian? #182
Comments
Yes, that's correct. A user-supplied Jacobian function is currently required when using the oneMKL interface. This function may compute the analytic Jacobian or an approximation to it e.g., using difference-quotients. |
Why there is not any pre-packaged difference-quotient jacobian as it is for the standard dense solver? |
The implementation of the difference-quotients routine in CVODE currently is specific to the standard dense and banded matrices. Generalizing it to support other matrices is something that I think would be nice, but we don't currently have any plans to do so. |
Thank you for the explanation. This is blocking in my scenario, where I'm translating automatically from MATLAB to C and simulating with sundials by using QSPcc Can you give me some hints on how to implement a difference-quotient jacobian for the MKL matrix? |
Hello again,
I finally was able to compile link and execute my model with the onemkl dense linear solver.
The problem now is that at initialization time I get this error
I'm using the following initialization code:
It looks like onemkldense solver doesn't have a default difference-quotient jacobian, like the standard dense/band/lapack solvers.
Is this true? Users are forced to provide a Jacobian through CVodeSetJacFn to use this solver?
As always thank you very much for your help.
The text was updated successfully, but these errors were encountered: