Skip to content

Commit

Permalink
Automatic jacobian selection for Radau5
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMeisrimelModelon committed Nov 17, 2023
1 parent db91e95 commit 38235b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyfmi/fmi_algorithm_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def _set_options(self):
self.with_jacobian = True
else:
fnbr, gnbr = self.model.get_ode_sizes()
if fnbr >= PYFMI_JACOBIAN_LIMIT and solver == "CVode":
if fnbr >= PYFMI_JACOBIAN_LIMIT and (solver == "CVode" or solver == "Radau5ODE"):
self.with_jacobian = True
if fnbr >= PYFMI_JACOBIAN_SPARSE_SIZE_LIMIT:
try:
Expand Down

0 comments on commit 38235b9

Please sign in to comment.