Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge from John-Costa's Branch to master branch
  • Loading branch information
jic13003 committed Dec 9, 2015
1 parent d250680 commit 9fdb2b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jat/examples/ThreeBodyExample/ThreeBodyAPL.java
Expand Up @@ -88,19 +88,19 @@ public class ThreeBodyAPL extends ThreeBody implements FirstOrderDifferentialEqu
double t = interpolator.getCurrentTime();
double[] y = interpolator.getInterpolatedState();
// takes first mass elements and adds it to array
System.out.println(t + " " + y[0] + " " + y[1]+ " " + y[2]);
System.out.println("m1: " + t + " " + y[0] + " " + y[1]+ " " + y[2]);
time.add(t);
xsol.add(y[0]);
ysol.add(y[1]);
zsol.add(y[2]);
// takes second mass elements and adds it to array
System.out.println(t + " " + y[6] + " " + y[7]+ " " + y[8]);
System.out.println("m2: " + t + " " + y[6] + " " + y[7]+ " " + y[8]);
time.add(t);
xsol.add(y[6]);
ysol.add(y[7]);
zsol.add(y[8]);
//takes third mass elements and adds it to array
System.out.println(t + " " + y[12] + " " + y[13]+ " " + y[14]);
System.out.println("m3: " + t + " " + y[12] + " " + y[13]+ " " + y[14]);
time.add(t);
xsol.add(y[12]);
ysol.add(y[13]);
Expand Down

0 comments on commit 9fdb2b6

Please sign in to comment.