mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 01:59:13 +00:00
Fixed a findbugs warning.
The setStepsizeControl method in GraggBulirschStoerIntegrator has been renamed setControlFactors to avoid confusion with the parent class setStepSizeControl method. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1295772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eea1a7d14e
commit
89e65efc1e
@ -170,7 +170,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
|
||||
super(METHOD_NAME, minStep, maxStep,
|
||||
scalAbsoluteTolerance, scalRelativeTolerance);
|
||||
setStabilityCheck(true, -1, -1, -1);
|
||||
setStepsizeControl(-1, -1, -1, -1);
|
||||
setControlFactors(-1, -1, -1, -1);
|
||||
setOrderControl(-1, -1, -1);
|
||||
setInterpolationControl(true, -1);
|
||||
}
|
||||
@ -192,7 +192,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
|
||||
super(METHOD_NAME, minStep, maxStep,
|
||||
vecAbsoluteTolerance, vecRelativeTolerance);
|
||||
setStabilityCheck(true, -1, -1, -1);
|
||||
setStepsizeControl(-1, -1, -1, -1);
|
||||
setControlFactors(-1, -1, -1, -1);
|
||||
setOrderControl(-1, -1, -1);
|
||||
setInterpolationControl(true, -1);
|
||||
}
|
||||
@ -255,8 +255,8 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
|
||||
* @param control4 fourth stepsize control factor (the factor
|
||||
* is reset to default if lower than 1.0001 or greater than 999.9)
|
||||
*/
|
||||
public void setStepsizeControl(final double control1, final double control2,
|
||||
final double control3, final double control4) {
|
||||
public void setControlFactors(final double control1, final double control2,
|
||||
final double control3, final double control4) {
|
||||
|
||||
if ((control1 < 0.0001) || (control1 > 0.9999)) {
|
||||
this.stepControl1 = 0.65;
|
||||
|
@ -155,9 +155,9 @@ public class GraggBulirschStoerIntegratorTest {
|
||||
Assert.assertTrue(errorWithDefaultSettings < getMaxError(integ, pb));
|
||||
integ.setStabilityCheck(true, -1, -1, -1);
|
||||
|
||||
integ.setStepsizeControl(0.5, 0.99, 0.1, 2.5);
|
||||
integ.setControlFactors(0.5, 0.99, 0.1, 2.5);
|
||||
Assert.assertTrue(errorWithDefaultSettings < getMaxError(integ, pb));
|
||||
integ.setStepsizeControl(-1, -1, -1, -1);
|
||||
integ.setControlFactors(-1, -1, -1, -1);
|
||||
|
||||
integ.setOrderControl(10, 0.7, 0.95);
|
||||
Assert.assertTrue(errorWithDefaultSettings < getMaxError(integ, pb));
|
||||
|
Loading…
x
Reference in New Issue
Block a user