# HG changeset patch # User jwe # Date 1041637630 0 # Node ID 5ab4ac522fec5752d797007b2b0809044c1a3ee9 # Parent 8724cf60d51db59207142ed21b9ccfb3804ecdf4 [project @ 2003-01-03 23:45:06 by jwe] diff -r 8724cf60d51d -r 5ab4ac522fec liboctave/DAERT.h --- a/liboctave/DAERT.h Fri Jan 03 23:03:02 2003 +0000 +++ b/liboctave/DAERT.h Fri Jan 03 23:47:10 2003 +0000 @@ -35,12 +35,12 @@ DAERT (void) : base_diff_alg_eqn (), DAERTFunc () { } - DAERT (const ColumnVector& x, double t, DAERTFunc& f) - : base_diff_alg_eqn (x, t), DAERTFunc (f) { } + DAERT (const ColumnVector& xx, double tt, DAERTFunc& f) + : base_diff_alg_eqn (xx, tt), DAERTFunc (f) { } - DAERT (const ColumnVector& x, const ColumnVector& xdot, double t, + DAERT (const ColumnVector& xx, const ColumnVector& xxdot, double tt, DAERTFunc& f) - : base_diff_alg_eqn (x, xdot, t), DAERTFunc (f) { } + : base_diff_alg_eqn (xx, xxdot, tt), DAERTFunc (f) { } DAERT (const DAERT& a) : base_diff_alg_eqn (a), DAERTFunc (a) { } @@ -58,9 +58,10 @@ ~DAERT (void) { } - void initialize (const ColumnVector& x, const ColumnVector& xdot, double t) + void initialize (const ColumnVector& xx, const ColumnVector& xxdot, + double tt) { - base_diff_alg_eqn::initialize (x, xdot, t); + base_diff_alg_eqn::initialize (xx, xxdot, tt); } }; diff -r 8724cf60d51d -r 5ab4ac522fec liboctave/ODES.cc --- a/liboctave/ODES.cc Fri Jan 03 23:03:02 2003 +0000 +++ b/liboctave/ODES.cc Fri Jan 03 23:47:10 2003 +0000 @@ -32,17 +32,17 @@ #include "lo-error.h" void -ODES::initialize (const ColumnVector& xx, double t) +ODES::initialize (const ColumnVector& xx, double tt) { - base_diff_eqn::initialize (xx, t); + base_diff_eqn::initialize (xx, tt); xdot = ColumnVector (xx.length (), 0.0); } void -ODES::initialize (const ColumnVector& xx, double t, +ODES::initialize (const ColumnVector& xx, double tt, const ColumnVector& xtheta) { - base_diff_eqn::initialize (xx, t); + base_diff_eqn::initialize (xx, tt); xdot = ColumnVector (xx.length (), 0.0); theta = xtheta; } diff -r 8724cf60d51d -r 5ab4ac522fec liboctave/ODESSA.cc --- a/liboctave/ODESSA.cc Fri Jan 03 23:03:02 2003 +0000 +++ b/liboctave/ODESSA.cc Fri Jan 03 23:47:10 2003 +0000 @@ -212,15 +212,15 @@ y.resize (n, 1, 0.0); } -ODESSA::ODESSA (const ColumnVector& state, const ColumnVector& theta, +ODESSA::ODESSA (const ColumnVector& state, const ColumnVector& xtheta, const Matrix& sensitivity_guess, double time, ODESFunc& f) - : ODES (state, theta, time, f) + : ODES (state, xtheta, time, f) { initialized = false; neq.resize(2); n = state.length(); - npar = theta.length(); + npar = xtheta.length(); neq(0) = n; neq(1) = npar; @@ -230,12 +230,12 @@ for (int i = 0; i < npar; i++) { - par(i) = theta(i); + par(i) = xtheta(i); } sanity_checked = false; - npar = theta.length (); + npar = xtheta.length (); iopt.resize(4); itask = 1; diff -r 8724cf60d51d -r 5ab4ac522fec liboctave/base-de.h --- a/liboctave/base-de.h Fri Jan 03 23:03:02 2003 +0000 +++ b/liboctave/base-de.h Fri Jan 03 23:47:10 2003 +0000 @@ -78,10 +78,10 @@ double time (void) const { return t; } - void set_stop_time (double t) + void set_stop_time (double tt) { stop_time_set = true; - stop_time = t; + stop_time = tt; force_restart (); }