updated step interpolators implementations tests to latest interface changes

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@782433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2009-06-07 19:10:23 +00:00
parent 5124ebc4c2
commit d2429d337c
5 changed files with 8 additions and 8 deletions

View File

@ -189,7 +189,7 @@ public class ClassicalRungeKuttaIntegratorTest
maxError = 0;
}
public void handleStep(StepInterpolator interpolator,
boolean isLast) {
boolean isLast) throws DerivativeException {
double[] interpolatedY = interpolator.getInterpolatedState ();
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());

View File

@ -37,7 +37,7 @@ import org.junit.Test;
public class EulerStepInterpolatorTest {
@Test
public void noReset() {
public void noReset() throws DerivativeException {
double[] y = { 0.0, 1.0, -2.0 };
double[][] yDot = { { 1.0, 2.0, -2.0 } };

View File

@ -179,9 +179,9 @@ public class GillIntegratorTest
maxError = 0;
}
public void handleStep(StepInterpolator interpolator,
boolean isLast) {
boolean isLast) throws DerivativeException {
double[] interpolatedY = interpolator.getInterpolatedState ();
double[] interpolatedY = interpolator.getInterpolatedState();
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());
double dx = interpolatedY[0] - theoreticalY[0];
double dy = interpolatedY[1] - theoreticalY[1];

View File

@ -373,10 +373,10 @@ public class HighamHall54IntegratorTest
maxError = 0;
}
public void handleStep(StepInterpolator interpolator,
boolean isLast) {
boolean isLast) throws DerivativeException {
++nbSteps;
double[] interpolatedY = interpolator.getInterpolatedState ();
double[] interpolatedY = interpolator.getInterpolatedState();
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());
double dx = interpolatedY[0] - theoreticalY[0];
double dy = interpolatedY[1] - theoreticalY[1];

View File

@ -174,9 +174,9 @@ public class ThreeEighthesIntegratorTest
}
public void handleStep(StepInterpolator interpolator,
boolean isLast) {
boolean isLast) throws DerivativeException {
double[] interpolatedY = interpolator.getInterpolatedState ();
double[] interpolatedY = interpolator.getInterpolatedState();
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());
double dx = interpolatedY[0] - theoreticalY[0];
double dy = interpolatedY[1] - theoreticalY[1];