# HG changeset patch # User Markus Mützel # Date 1589810630 -7200 # Node ID dddc6c2661bce221d02db6b371de960a70ba107a # Parent f9b5357f4a7e790fd682d66e0aa95ac8b03c39b4 ode23s.m: Make tests with sparse Jacobian or JPattern conditional on UMFPACK. diff -r f9b5357f4a7e -r dddc6c2661bc scripts/ode/ode23s.m --- a/scripts/ode/ode23s.m Mon May 18 14:44:10 2020 +0200 +++ b/scripts/ode/ode23s.m Mon May 18 16:03:50 2020 +0200 @@ -471,12 +471,12 @@ %! opt = odeset ('Jacobian', @jac); %! sol = ode23s (@fpol, [0 2], [2 0], opt); %! assert ([sol.x(end); sol.y(:,end)], [2; fref'], 1e-3); -%!test # Sparse Jacobian +%!testif HAVE_UMFPACK # Sparse Jacobian %! jac = @(t, y) sparse ([0 1; -20*y(1)*y(2)-1, 10*(1-y(1)^2)]); %! opt = odeset ('Jacobian', jac); %! sol = ode23s (@fpol, [0 2], [2 0], opt); %! assert ([sol.x(end); sol.y(:,end)], [2; fref'], 1e-3); -%!test # Jpattern +%!testif HAVE_UMFPACK # Jpattern %! S = sparse ([0 1; 1 1]); %! opt = odeset ("Jpattern", S); %! sol = ode23s (@fpol, [0 2], [2 0], opt);