updated serialization metadata as we now serialize secondary equations too
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1176745 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b5724e1cc0
commit
5313f6aaae
|
@ -47,8 +47,8 @@ import org.apache.commons.math.ode.sampling.StepInterpolator;
|
|||
class ClassicalRungeKuttaStepInterpolator
|
||||
extends RungeKuttaStepInterpolator {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = -6576285612589783992L;
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Simple constructor.
|
||||
* This constructor builds an instance that is not usable yet, the
|
||||
|
|
|
@ -71,8 +71,8 @@ class DormandPrince54StepInterpolator
|
|||
/** Shampine (1986) Dense output, element 6. */
|
||||
private static final double D6 = 69997945.0 / 29380423.0;
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = 4104157279605906956L;
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** First vector for interpolation. */
|
||||
private double[] v1;
|
||||
|
|
|
@ -38,8 +38,8 @@ import org.apache.commons.math.ode.sampling.StepInterpolator;
|
|||
class DormandPrince853StepInterpolator
|
||||
extends RungeKuttaStepInterpolator {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = 7152276390558450974L;
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Propagation weights, element 1. */
|
||||
private static final double B_01 = 104257.0 / 1920240.0;
|
||||
|
|
|
@ -41,8 +41,8 @@ import org.apache.commons.math.ode.sampling.StepInterpolator;
|
|||
class EulerStepInterpolator
|
||||
extends RungeKuttaStepInterpolator {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = -7179861704951334960L;
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Simple constructor.
|
||||
* This constructor builds an instance that is not usable yet, the
|
||||
|
|
|
@ -53,8 +53,8 @@ class GillStepInterpolator
|
|||
/** Second Gill coefficient. */
|
||||
private static final double TWO_PLUS_SQRT_2 = 2 + FastMath.sqrt(2.0);
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = -107804074496313322L;
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Simple constructor.
|
||||
* This constructor builds an instance that is not usable yet, the
|
||||
|
|
|
@ -79,7 +79,7 @@ class GraggBulirschStoerStepInterpolator
|
|||
extends AbstractStepInterpolator {
|
||||
|
||||
/** Serializable version identifier. */
|
||||
private static final long serialVersionUID = 7320613236731409847L;
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Slope at the beginning of the step. */
|
||||
private double[] y0Dot;
|
||||
|
|
|
@ -33,7 +33,7 @@ class HighamHall54StepInterpolator
|
|||
extends RungeKuttaStepInterpolator {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = -3583240427587318654L;
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Simple constructor.
|
||||
* This constructor builds an instance that is not usable yet, the
|
||||
|
|
|
@ -43,8 +43,8 @@ import org.apache.commons.math.ode.sampling.StepInterpolator;
|
|||
class MidpointStepInterpolator
|
||||
extends RungeKuttaStepInterpolator {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = -865524111506042509L;
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Simple constructor.
|
||||
* This constructor builds an instance that is not usable yet, the
|
||||
|
|
|
@ -48,8 +48,8 @@ import org.apache.commons.math.ode.sampling.StepInterpolator;
|
|||
class ThreeEighthesStepInterpolator
|
||||
extends RungeKuttaStepInterpolator {
|
||||
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = -3345024435978721931L;
|
||||
/** Serializable version identifier */
|
||||
private static final long serialVersionUID = 20110928L;
|
||||
|
||||
/** Simple constructor.
|
||||
* This constructor builds an instance that is not usable yet, the
|
||||
|
|
|
@ -61,8 +61,8 @@ public class ClassicalRungeKuttaStepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 753000);
|
||||
Assert.assertTrue(bos.size () < 754000);
|
||||
Assert.assertTrue(bos.size () > 750000);
|
||||
Assert.assertTrue(bos.size () < 800000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -73,8 +73,8 @@ public class DormandPrince54StepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 126000);
|
||||
Assert.assertTrue(bos.size () < 127000);
|
||||
Assert.assertTrue(bos.size () > 125000);
|
||||
Assert.assertTrue(bos.size () < 130000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -73,8 +73,8 @@ public class DormandPrince853StepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 88000);
|
||||
Assert.assertTrue(bos.size () < 89000);
|
||||
Assert.assertTrue(bos.size () > 85000);
|
||||
Assert.assertTrue(bos.size () < 95000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -61,8 +61,8 @@ public class GillStepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 753000);
|
||||
Assert.assertTrue(bos.size () < 754000);
|
||||
Assert.assertTrue(bos.size () > 750000);
|
||||
Assert.assertTrue(bos.size () < 800000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -75,8 +75,8 @@ public class GraggBulirschStoerStepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 34000);
|
||||
Assert.assertTrue(bos.size () < 35000);
|
||||
Assert.assertTrue(bos.size () > 35000);
|
||||
Assert.assertTrue(bos.size () < 36000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -73,8 +73,8 @@ public class HighamHall54StepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 167000);
|
||||
Assert.assertTrue(bos.size () < 168000);
|
||||
Assert.assertTrue(bos.size () > 170000);
|
||||
Assert.assertTrue(bos.size () < 175000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -62,8 +62,8 @@ public class MidpointStepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 114000);
|
||||
Assert.assertTrue(bos.size () < 115000);
|
||||
Assert.assertTrue(bos.size () > 120000);
|
||||
Assert.assertTrue(bos.size () < 125000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -61,8 +61,8 @@ public class ThreeEighthesStepInterpolatorTest {
|
|||
oos.writeObject(handler);
|
||||
}
|
||||
|
||||
Assert.assertTrue(bos.size () > 753000);
|
||||
Assert.assertTrue(bos.size () < 754000);
|
||||
Assert.assertTrue(bos.size () > 750000);
|
||||
Assert.assertTrue(bos.size () < 800000);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
|
@ -85,8 +85,8 @@ public class DummyStepInterpolatorTest {
|
|||
ObjectOutputStream oos = new ObjectOutputStream(bos);
|
||||
oos.writeObject(interpolator);
|
||||
|
||||
Assert.assertTrue(bos.size () > 200);
|
||||
Assert.assertTrue(bos.size () < 300);
|
||||
Assert.assertTrue(bos.size () > 300);
|
||||
Assert.assertTrue(bos.size () < 500);
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
|
|
Loading…
Reference in New Issue