changeset 28312:dddc6c2661bc

ode23s.m: Make tests with sparse Jacobian or JPattern conditional on UMFPACK.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 18 May 2020 16:03:50 +0200
parents f9b5357f4a7e
children d13ad9dc9348
files scripts/ode/ode23s.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);