jabble
Class Injection

java.lang.Object
  extended by jabble.MultigridOperation
      extended by jabble.Injection

public class Injection
extends MultigridOperation


Field Summary
 
Fields inherited from class jabble.MultigridOperation
CUBIC_INTERPOLATION, FULL_WEIGHTING, HALF_WEIGHTING, INJECTION, LINEAR_INTERPOLATION
 
Constructor Summary
Injection()
          Creates a new instance of Injection
 
Method Summary
 void calculate(Field[] coarseFields, Field[] fineFields)
          Calculates the multigrid operations on the given set of fields (paired in the array order).
protected  void calculate(Point finePoint, Point coarsePoint, Field fineField, Field coarseField)
          Calculates the operation at the given point for the given field.
 void setMultiplicationFactors(double[] coefficients)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Injection

public Injection()
Creates a new instance of Injection

Method Detail

setMultiplicationFactors

public void setMultiplicationFactors(double[] coefficients)

calculate

public void calculate(Field[] coarseFields,
                      Field[] fineFields)
Description copied from class: MultigridOperation
Calculates the multigrid operations on the given set of fields (paired in the array order).

Overrides:
calculate in class MultigridOperation
Parameters:
coarseFields - a list of fields on the coarse grid
fineFields - a list of fields on the fine grid

calculate

protected void calculate(Point finePoint,
                         Point coarsePoint,
                         Field fineField,
                         Field coarseField)
Description copied from class: MultigridOperation
Calculates the operation at the given point for the given field. Typically, one has only to implement this method to implement an operator. The two points given correspond to the same point in space, and will use them to read/write the values on the respective fields.

Specified by:
calculate in class MultigridOperation
Parameters:
finePoint - the point on the fine grid
coarsePoint - the point on the coarse grid
fineField - the field on the fine grid
coarseField - the field on the coarse grid