From 980d5333677a813aaea2793202f6ad2c5043ec09 Mon Sep 17 00:00:00 2001 From: limw Date: Thu, 14 Jul 2011 21:33:41 +0000 Subject: [PATCH] Added HG.java --- .../Scheduling/GC/NON_BAMBOO/bh/HG.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Robust/src/Benchmarks/Scheduling/GC/NON_BAMBOO/bh/HG.java diff --git a/Robust/src/Benchmarks/Scheduling/GC/NON_BAMBOO/bh/HG.java b/Robust/src/Benchmarks/Scheduling/GC/NON_BAMBOO/bh/HG.java new file mode 100644 index 00000000..18135805 --- /dev/null +++ b/Robust/src/Benchmarks/Scheduling/GC/NON_BAMBOO/bh/HG.java @@ -0,0 +1,38 @@ +package bh; + +/** + * A class which is used to compute and save information during the + * gravity computation phase. + **/ +public class HG +{ + /** + * Body to skip in force evaluation + **/ + public Body pskip; + /** + * Point at which to evaluate field + **/ + public MathVector pos0; + /** + * Computed potential at pos0 + **/ + public double phi0; + /** + * computed acceleration at pos0 + **/ + public MathVector acc0; + + /** + * Create a HG object. + * @param b the body object + * @param p a vector that represents the body + **/ + public HG(Body b, MathVector p) + { + pskip = b; + pos0 = (MathVector)p.clone(); + phi0 = 0.0; + acc0 = new MathVector(); + } +} \ No newline at end of file -- 2.34.1