commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r981248 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff: AdamsBashforthIntegrator.java AdamsMoultonIntegrator.java
Date Sun, 01 Aug 2010 15:36:10 GMT
Author: luc
Date: Sun Aug  1 15:36:10 2010
New Revision: 981248

URL: http://svn.apache.org/viewvc?rev=981248&view=rev
Log:
removed duplicate strings

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java?rev=981248&r1=981247&r2=981248&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java
Sun Aug  1 15:36:10 2010
@@ -140,6 +140,9 @@ import org.apache.commons.math.ode.sampl
  */
 public class AdamsBashforthIntegrator extends AdamsIntegrator {
 
+    /** Integrator method name. */
+    private static final String METHOD_NAME = "Adams-Bashforth";
+
     /**
      * Build an Adams-Bashforth integrator with the given order and step control parameters.
      * @param nSteps number of steps of the method excluding the one being computed
@@ -156,7 +159,7 @@ public class AdamsBashforthIntegrator ex
                                     final double scalAbsoluteTolerance,
                                     final double scalRelativeTolerance)
         throws IllegalArgumentException {
-        super("Adams-Bashforth", nSteps, nSteps, minStep, maxStep,
+        super(METHOD_NAME, nSteps, nSteps, minStep, maxStep,
               scalAbsoluteTolerance, scalRelativeTolerance);
     }
 
@@ -176,7 +179,7 @@ public class AdamsBashforthIntegrator ex
                                     final double[] vecAbsoluteTolerance,
                                     final double[] vecRelativeTolerance)
         throws IllegalArgumentException {
-        super("Adams-Bashforth", nSteps, nSteps, minStep, maxStep,
+        super(METHOD_NAME, nSteps, nSteps, minStep, maxStep,
               vecAbsoluteTolerance, vecRelativeTolerance);
     }
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java?rev=981248&r1=981247&r2=981248&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java
Sun Aug  1 15:36:10 2010
@@ -157,6 +157,9 @@ import org.apache.commons.math.ode.sampl
  */
 public class AdamsMoultonIntegrator extends AdamsIntegrator {
 
+    /** Integrator method name. */
+    private static final String METHOD_NAME = "Adams-Moulton";
+
     /**
      * Build an Adams-Moulton integrator with the given order and error control parameters.
      * @param nSteps number of steps of the method excluding the one being computed
@@ -173,7 +176,7 @@ public class AdamsMoultonIntegrator exte
                                   final double scalAbsoluteTolerance,
                                   final double scalRelativeTolerance)
         throws IllegalArgumentException {
-        super("Adams-Moulton", nSteps, nSteps + 1, minStep, maxStep,
+        super(METHOD_NAME, nSteps, nSteps + 1, minStep, maxStep,
               scalAbsoluteTolerance, scalRelativeTolerance);
     }
 
@@ -193,7 +196,7 @@ public class AdamsMoultonIntegrator exte
                                   final double[] vecAbsoluteTolerance,
                                   final double[] vecRelativeTolerance)
         throws IllegalArgumentException {
-        super("Adams-Moulton", nSteps, nSteps + 1, minStep, maxStep,
+        super(METHOD_NAME, nSteps, nSteps + 1, minStep, maxStep,
               vecAbsoluteTolerance, vecRelativeTolerance);
     }
 



Mime
View raw message