changeset 22651:9476c7ddf584 stable

odedefaults.m: Initialize properties InitialSlope and OutputSel each function call. * odedefaults.m: For persistent variable defaults, initialize InitialSlope for each function call. For persistent variable attributes, initialize InitialSlope and OutputSel for each function call.
author Rik <rik@octave.org>
date Thu, 20 Oct 2016 21:24:50 -0700
parents 7458bacc631a
children bc61ed076549
files scripts/ode/private/odedefaults.m
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ode/private/odedefaults.m	Thu Oct 20 21:14:17 2016 -0700
+++ b/scripts/ode/private/odedefaults.m	Thu Oct 20 21:24:50 2016 -0700
@@ -47,6 +47,7 @@
                                 "Stats", "off",
                                 "Vectorized", "off");
 
+  defaults.InitialSlope = zeros (n,1);
   defaults.MaxStep = 0.1 * abs (tf -t0);
 
   persistent classes = struct ("AbsTol", {{"float"}},
@@ -95,5 +96,9 @@
                                   "RelTol", {{"scalar", "positive", "real"}},
                                   "Stats", {{"on", "off"}},
                                   "Vectorized", {{"on", "off"}});
+
+  attributes.InitialSlope = {"real", "vector", "numel", n};
+  attributes.OutputSel = {"vector", "integer", "positive", ">", 0, "<=", n};
+
 endfunction