99 * University of Stuttgart. All rights reserved.
1010 * Copyright (c) 2004-2005 The Regents of the University of California.
1111 * All rights reserved.
12+ * Copyright (c) 2015 Research Organization for Information Science
13+ * and Technology (RIST). All rights reserved.
1214 * $COPYRIGHT$
1315 *
1416 * Additional copyrights may follow
@@ -231,6 +233,18 @@ public final boolean isNull()
231233 return handle == nullHandle ;
232234}
233235
236+ /**
237+ * Java binding of {@code MPI_COMM_GET_INFO}.
238+ * @throws MPIException
239+ */
240+ public final Info getInfo () throws MPIException
241+ {
242+ MPI .check ();
243+ return getInfo (handle );
244+ }
245+
246+ private native void getInfo (long handle , long info ) throws MPIException ;
247+
234248/**
235249 * Java binding of {@code MPI_COMM_SET_INFO}.
236250 * @param info info object
@@ -242,7 +256,7 @@ public final void setInfo(Info info) throws MPIException
242256 setInfo (handle , info .handle );
243257}
244258
245- private native void setInfo (long fh , long info ) throws MPIException ;
259+ private native void setInfo (long comm , long info ) throws MPIException ;
246260
247261/**
248262 * Java binding of {@code MPI_COMM_GET_INFO}.
@@ -255,7 +269,7 @@ public final Info getInfo() throws MPIException
255269 return new Info (getInfo (handle ));
256270}
257271
258- private native long getInfo (long fh ) throws MPIException ;
272+ private native long getInfo (long comm ) throws MPIException ;
259273
260274/**
261275 * Java binding of the MPI operation {@code MPI_COMM_DISCONNECT}.
0 commit comments