Added HG.java
authorlimw <limw>
Thu, 14 Jul 2011 21:33:41 +0000 (21:33 +0000)
committerlimw <limw>
Thu, 14 Jul 2011 21:33:41 +0000 (21:33 +0000)
Robust/src/Benchmarks/Scheduling/GC/NON_BAMBOO/bh/HG.java [new file with mode: 0644]

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 (file)
index 0000000..1813580
--- /dev/null
@@ -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