cc_staff
153
edits
m (More Python (mpi4py)) |
m (More Python (mpi4py)) |
||
Line 505: | Line 505: | ||
TYPE(MPI_Comm), INTENT(IN) :: comm | TYPE(MPI_Comm), INTENT(IN) :: comm | ||
INTEGER, OPTIONAL, INTENT(OUT) :: ierr | INTEGER, OPTIONAL, INTENT(OUT) :: ierr | ||
</source> | |||
</tab> | |||
<tab name="Python (mpi4py)"> | |||
<source lang="python"> | |||
# For general Python objects (pickled) | |||
MPI.Intracomm.send(self, obj, int dest, int tag=0) | |||
# For numpy arrays (fast) | |||
MPI.Intracomm.Send(self, buf, int dest, int tag=0) | |||
</source> | </source> | ||
</tab> | </tab> | ||
Line 555: | Line 564: | ||
TYPE(MPI_Status) :: status | TYPE(MPI_Status) :: status | ||
INTEGER, OPTIONAL, INTENT(OUT) :: ierr | INTEGER, OPTIONAL, INTENT(OUT) :: ierr | ||
</source> | |||
</tab> | |||
<tab name="Python (mpi4py)"> | |||
<source lang="python"> | |||
# For general Python objects (pickled) | |||
MPI.Intracomm.recv(self, buf=None, int source=ANY_SOURCE, int tag=ANY_TAG, Status status=None) | |||
# For numpy arrays (fast) | |||
MPI.Intracomm.Recv(self, buf, int source=ANY_SOURCE, int tag=ANY_TAG, Status status=None) | |||
</source> | </source> | ||
</tab> | </tab> |