Mercurial > hg > octave-lyh
diff liboctave/ODES.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/ODES.h +++ b/liboctave/ODES.h @@ -32,7 +32,7 @@ public: ODES (void) - : base_diff_eqn (), ODESFunc (), theta () { } + : base_diff_eqn (), ODESFunc (), xdot (), theta () { } ODES (const ColumnVector& s, double tm, ODESFunc& f) : base_diff_eqn (s, tm), ODESFunc (f), xdot (s.length (), 0.0), theta () { } @@ -43,7 +43,7 @@ theta (xtheta) { } ODES (const ODES& a) - : base_diff_eqn (a), ODESFunc (a), theta (a.theta) { } + : base_diff_eqn (a), ODESFunc (a), xdot (a.xdot), theta (a.theta) { } ODES& operator = (const ODES& a) {