Hello Lisandro,
I am using two differnt parallel codes written in Python and Fortran. I did coupling
with via dynamic processing (Actually Lisandro helped me out for this ).
We have one "main.py" script which is parent process. And then parent process spawn two children (Fortran
and Python ).
We have intercommunicator between Fortran and Python script, I have been using send-recv, Bcast, or Gather
sucsesfully so far.
However, I need to use "Allgather" communications which seems a litte bit problematic,
In fortran side, I call
call MPI_ALLGATHER( nlocfaces, 1, MPI_INTEGER, dummy, 1, &
MPI_DATATYPE_NULL, MPM_COMM_FVM, iFVMerr)
MPM_COMM_FVM is intercommunicator enabling two siblings communicate ( Fortran code is MPM, Python code is FVM)
In python side, I do
self.FVM_COMM_MPM.Allgather([dummy,
MPI.INT],[self.nfaces,
MPI.INT])
(not: even FVM_COMM_MPM and MPM_COMM_FVM has different names but they are the same intercommunicators)
The probem is here, I am reading MPI refrence for this, it says if you want to do data movement in only one direction,
you have specify "sendcount=0" for the communication in the reverse direction.
I look at Allgather API
Allgather(self,
sendbuf,
recvbuf) I want to do something like this in python side (I don't want data coming from python side)
self.FVM_COMM_MPM.Allgather([dummy,
MPI.INT], sendcount=0, [self.nfaces,
MPI.INT])
Could you help me out for this?
Thanks,
B. Gazi YILDIRIM
--
You received this message because you are subscribed to the Google Groups "mpi4py" group.
To post to this group, send email to
mpi...@googlegroups.com.
To unsubscribe from this group, send email to
mpi4py+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mpi4py?hl=en.