[Scipy-svn] r2704 - trunk/Lib/integrate
scipy-svn at scipy.org
scipy-svn at scipy.org
Mon Feb 12 01:48:57 EST 2007
Author: stefan
Date: 2007-02-12 00:48:44 -0600 (Mon, 12 Feb 2007)
New Revision: 2704
Modified:
trunk/Lib/integrate/odepack.py
Log:
Copy odeint input argument to prevent it from being changed.
Modified: trunk/Lib/integrate/odepack.py
===================================================================
--- trunk/Lib/integrate/odepack.py 2007-02-12 04:05:31 UTC (rev 2703)
+++ trunk/Lib/integrate/odepack.py 2007-02-12 06:48:44 UTC (rev 2704)
@@ -118,6 +118,7 @@
if mu is None:
mu = -1 # changed to zero inside function call
t = copy(t)
+ y0 = copy(y0)
output = _odepack.odeint(func, y0, t, args, Dfun, col_deriv, ml, mu,
full_output, rtol, atol, tcrit, h0, hmax, hmin,
ixpr, mxstep, mxhnil, mxordn, mxords)
More information about the Scipy-svn
mailing list