commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r590748 - /commons/proper/math/trunk/src/java/org/apache/commons/math/ode/RungeKuttaFehlbergIntegrator.java
Date Wed, 31 Oct 2007 16:54:12 GMT
Author: luc
Date: Wed Oct 31 09:54:04 2007
New Revision: 590748

URL: http://svn.apache.org/viewvc?rev=590748&view=rev
Log:
make sure to use setSafety instead of changing the attribute
in case someone overrides the method

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/ode/RungeKuttaFehlbergIntegrator.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/ode/RungeKuttaFehlbergIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/RungeKuttaFehlbergIntegrator.java?rev=590748&r1=590747&r2=590748&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/ode/RungeKuttaFehlbergIntegrator.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/ode/RungeKuttaFehlbergIntegrator.java
Wed Oct 31 09:54:04 2007
@@ -87,9 +87,8 @@
 
     exp = -1.0 / getOrder();
 
-    this.safety = 0.9;
-
     // set the default values of the algorithm control parameters
+    setSafety(0.9);
     setMinReduction(0.2);
     setMaxGrowth(10.0);
 
@@ -125,9 +124,8 @@
 
     exp = -1.0 / getOrder();
 
-    this.safety = 0.9;
-
     // set the default values of the algorithm control parameters
+    setSafety(0.9);
     setMinReduction(0.2);
     setMaxGrowth(10.0);
 



Mime
View raw message