From e94d429fdcea46aec9174331ae549263886e4e9b Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 6 May 2019 07:26:44 +0100 Subject: [PATCH] #77 add comments to test_dae.py --- scikits/odes/tests/test_dae.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scikits/odes/tests/test_dae.py b/scikits/odes/tests/test_dae.py index 4148b6c8..be933058 100644 --- a/scikits/odes/tests/test_dae.py +++ b/scikits/odes/tests/test_dae.py @@ -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) @@ -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',