changeset 4230:1feaee8df4ff

[project @ 2002-12-19 05:28:02 by jwe]
author jwe
date Thu, 19 Dec 2002 05:28:02 +0000
parents 40153a2affd6
children 1032fb9ec0d1
files liboctave/ChangeLog liboctave/ODESSA.cc
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Wed Dec 18 20:37:32 2002 +0000
+++ b/liboctave/ChangeLog	Thu Dec 19 05:28:02 2002 +0000
@@ -1,5 +1,8 @@
 2002-12-18  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* ODESSA.cc (ODESSA::ODESSA): Initialize "initialized" data member
+	in all constructors.
+
 	* Makefile.in (liboctave.$(SHLEXT)): Include $(LIBKPATHSEA) here.
 	(LINK_DEPS): Not here.
 
--- a/liboctave/ODESSA.cc	Wed Dec 18 20:37:32 2002 +0000
+++ b/liboctave/ODESSA.cc	Thu Dec 19 05:28:02 2002 +0000
@@ -171,6 +171,8 @@
 
 ODESSA::ODESSA (void) : ODES (), ODESSA_options ()
 {
+  initialized = false;
+
   neq.resize(2);
   n = size ();
 
@@ -190,6 +192,8 @@
 ODESSA::ODESSA (const ColumnVector& state, double time, ODESFunc& f)
   : ODES (state, time, f), ODESSA_options ()
 {
+  initialized = false;
+
   neq.resize(2);
   n = size ();
 
@@ -246,6 +250,7 @@
 ODESSA::integrate (double tout)
 {
   ODESSA_result retval;
+
   if (! initialized)
     {