package integrators; import main.Globals; /** Most Integrator functions use this utility class to build convenient arrays of Node values. */ public class NodeValues extends Object { public float [] values; public int numSides; public NodeValues() { this(Globals.cellNumSides); } public NodeValues(int num_sides) { numSides = num_sides; values = new float[numSides]; } /** Provide a pre-made NodeValues object as an argument. I suppose sooner or later I'll provide copy() methods as well... */ public void copyInto(NodeValues nv) { for(int i = 0; i < this.numSides; i++) nv.values[i] = this.values[i]; nv.numSides = this.numSides; } }