diff liboctave/DASSL.h @ 11502:4638800cd660

delete data pointer members from liboctave ODE/DAE classes; make destuctors virtual in ODE/DAE base classes
author John W. Eaton <jwe@octave.org>
date Thu, 13 Jan 2011 03:16:40 -0500
parents cbc402e64d83
children fd0a3ac60b0e
line wrap: on
line diff
--- a/liboctave/DASSL.h
+++ b/liboctave/DASSL.h
@@ -35,14 +35,19 @@
 {
 public:
 
-  DASSL (void) : DAE (), DASSL_options (), initialized (false) { }
+  DASSL (void)
+    : DAE (), DASSL_options (), initialized (false), liw (0), lrw (0),
+      info (), iwork (), rwork (), abs_tol (), rel_tol () { }
 
   DASSL (const ColumnVector& s, double tm, DAEFunc& f)
-    : DAE (s, tm, f), DASSL_options (), initialized (false) { }
+    : DAE (s, tm, f), DASSL_options (), initialized (false), liw (0),
+      lrw (0), info (), iwork (), rwork (), abs_tol (), rel_tol () { }
 
   DASSL (const ColumnVector& s, const ColumnVector& deriv,
          double tm, DAEFunc& f)
-    : DAE (s, deriv, tm, f), DASSL_options (), initialized (false) { }
+    : DAE (s, deriv, tm, f), DASSL_options (), initialized (false),
+      liw (0), lrw (0), info (), iwork (), rwork (), abs_tol (),
+      rel_tol () { }
 
   ~DASSL (void) { }
 
@@ -73,14 +78,6 @@
 
   Array<double> abs_tol;
   Array<double> rel_tol;
-
-  double *px;
-  double *pxdot;
-  double *pabs_tol;
-  double *prel_tol;
-  octave_idx_type *pinfo;
-  octave_idx_type *piwork;
-  double *prwork;
 };
 
 #endif