From bug-request at octave dot org Sun Apr 16 11:15:09 2006 Subject: Extra input variable in oregonator.m From: "Keith Goodman" To: "bug at octave dot org" Date: Sun, 16 Apr 2006 09:13:23 -0700 ------=_Part_18290_29872980.1145204003411 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. 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? oregonator() throws an error: >> oregonator() error: octave_base_value::matrix_value(): wrong type argument `dynamically-linked function' ------=_Part_18290_29872980.1145204003411 Content-Type: text/x-patch; name=oregonator.m.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em3kg963 Content-Disposition: attachment; filename="oregonator.m.patch" 2006-04-16 Keith Goodman * examples/oregonator.m: Removed unused input variable `t'. ? oregonator.m.patch Index: oregonator.m =================================================================== RCS file: /cvs/octave/examples/oregonator.m,v retrieving revision 1.2 diff -u -r1.2 oregonator.m --- oregonator.m 8 Apr 1998 18:20:57 -0000 1.2 +++ oregonator.m 16 Apr 2006 16:04:22 -0000 at @ -7,7 +7,7 @@ ## M. Noyes, The Journal of Chemical Physics, Volume 60 Number 5, ## March 1974. -function dx = oregonator (x, t) +function dx = oregonator (x) dx = zeros (3, 1); ------=_Part_18290_29872980.1145204003411-- ------------------------------------------------------------- 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 -------------------------------------------------------------