Added HG.java
[IRC.git] / Robust / src / Benchmarks / Scheduling / GC / NON_BAMBOO / bh / HG.java
1 package bh;
2
3 /**
4  * A class which is used to compute and save information during the 
5  * gravity computation phase.
6  **/
7 public class HG
8 {
9   /**
10    * Body to skip in force evaluation
11    **/
12   public Body       pskip;
13   /**
14    * Point at which to evaluate field
15    **/
16   public MathVector pos0;  
17   /**
18    * Computed potential at pos0
19    **/
20   public double     phi0;  
21   /** 
22    * computed acceleration at pos0
23    **/
24   public MathVector acc0;  
25
26   /**
27    * Create a HG  object.
28    * @param b the body object
29    * @param p a vector that represents the body
30    **/
31   public HG(Body b, MathVector p)
32   {
33     pskip = b;
34     pos0  = (MathVector)p.clone();
35     phi0  = 0.0;
36     acc0  = new MathVector();
37   }
38 }