[mpich-discuss] How to handle complex variables (SOLVED)

Antonin@LPS bourgeois at lps.u-psud.fr
Tue Nov 9 04:11:51 CST 2010


Hi,

OK the problem was simply that only the master process performed the 
"MPI_REDUCE", see the

if(MPI_ID == 0) then
    call MPI_REDUCE(z1,z2,1,MPI_DOUBLE_COMPLEX,MPI_SUM,0,MPI_COMM_WORLD)
    write(*,*) "Sum is", z2
endif

Now I just put the call before the "if(MPI_ID == 0)" and everything is 
fine :)

Regards,
Antonin


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20101109/f3d2d077/attachment.htm>


More information about the mpich-discuss mailing list