From bug-request at octave dot org Sun Apr 16 11:50:48 2006 Subject: Extra input variable in oregonator.m From: "John W. Eaton" To: "Keith Goodman" Cc: "bug at octave dot org" Date: Sun, 16 Apr 2006 12:50:39 -0400 On 16-Apr-2006, Keith Goodman wrote: | examples/oregonator.m takes two input variables (x and t) but only | uses one (x). | examples/oregonator.cc only uses one (x). | | Here's a patch to remove `t' in oregonator.m. This function is intended to be called from ODE solvers like lsode which expect the RHS function to accept X and T. Removing the second argument won't cause trouble as long as you don't also generate an error if both X and T are supplied by the caller (as lsode will). | Also, I get a seg fault when I compile oregonator.cc and then call it | without (): | | >> oregonator | panic: Segmentation fault -- stopping myself... | Segmentation fault | | Is that just a matter of checking for the right number of input variables? Yes. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------