diff --git a/src/jat/coreNOSA/cm/ThreeBody.java b/src/jat/coreNOSA/cm/ThreeBody.java index a9eaabd..ef46b20 100644 --- a/src/jat/coreNOSA/cm/ThreeBody.java +++ b/src/jat/coreNOSA/cm/ThreeBody.java @@ -34,9 +34,9 @@ import jat.coreNOSA.math.MatrixVector.data.VectorN; public class ThreeBody implements Derivatives //, Printable { - - private double G; // Gravitational constant - private double m1, m2, m3; // masses + protected double steps = 500.; + protected double G; // Gravitational constant + protected double m1, m2, m3; // masses /** * Method ThreeBody. diff --git a/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java b/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java index f22a529..f1d5d07 100644 --- a/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java +++ b/src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java @@ -17,9 +17,10 @@ public class ThreeBodyAPL extends ThreeBody implements FirstOrderDifferentialEqu public ArrayList xsol = new ArrayList(); public ArrayList ysol = new ArrayList(); public ArrayList zsol = new ArrayList(); - + protected double[] randv[]; public ThreeBodyAPL(double G, double m1, double m2, double m3) { super(G, m1, m2, m3); + this.randv(); } @Override @@ -77,5 +78,4 @@ public class ThreeBodyAPL extends ThreeBody implements FirstOrderDifferentialEqu zsol.add(y[2]); } }; - } \ No newline at end of file