Skip to content

Commit

Permalink
had wrong settings
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMeisrimelModelon committed Nov 28, 2023
1 parent d306424 commit 3051e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyfmi/fmi_algorithm_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def __init__(self, *args, **kw):
'sensitivities':None,
'write_scaled_result':False,
'result_file_name':'',
'with_jacobian':True,
'with_jacobian':"Default",
'logging':False,
'dynamic_diagnostics':False,
'result_handling':"binary",
Expand Down 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 3051e8f

Please sign in to comment.