mpi
Class Op

java.lang.Object
  extended by mpi.Op

public class Op
extends java.lang.Object


Constructor Summary
Op(User_Function function, boolean commute)
          Bind a user-defined global reduction operation to an Op object.
 
Method Summary
 void finalize()
          Frees a user-defined reduction operation.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Op

public Op(User_Function function,
          boolean commute)
   throws MPIException
Bind a user-defined global reduction operation to an Op object.

function user defined function
commute true if commutative, false otherwise

Java binding of the MPI operation MPI_OP_CREATE.

To define a new operation, the programmer should define a concrete subclass of User_function, implementing the Call method, then pass an object from this class to the Op constructor.

Throws:
MPIException
Method Detail

finalize

public void finalize()
              throws MPIException
Frees a user-defined reduction operation.

Java binding of the MPI operation MPI_OP_FREE.

Overrides:
finalize in class java.lang.Object
Throws:
MPIException