Skip to content

Commit

Permalink
bmcage#77 add comments to test_dae.py
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed May 6, 2019
1 parent eb7f3fd commit e94d429
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scikits/odes/tests/test_dae.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def __init__(self):
jac_times_vec2 = None
jac_times_setupfn = None

# restrict to 'ida' method since jacobian function below
# follows the ida interface
if jac is not None and integrator == 'ida':
def jac_times_vec(tt, yy, yp, rr, v, Jv, cj):
J = zeros((len(yy), len(yy)), DTYPE)
Expand All @@ -55,6 +57,7 @@ def jac_times_setupfn(tt, yy, yp, rr, cj, userdata):

igs = [dae(integrator, res, jacfn=jac, old_api=old_api)]

# if testing 'ida' then try the iterative linsolvers as well
if integrator == 'ida':
igs.append(
dae(integrator, res, linsolver='spgmr',
Expand Down

0 comments on commit e94d429

Please sign in to comment.