|
[Sponsors] |
May 3, 2004, 19:57 |
Transfer data in MPI
|
#1 |
Guest
Posts: n/a
|
Hi, guys: I try to parallelize a big code using MPI. I have some questions and need your help.
1> beside MPI_PACK and MPI_UNPACK, is there only other simple way to transfer different type of data? like to transfer one integer and one real together? 2> for a simple example, node 0, a = 0.3 node 1, a = 0.1 by use MPI_ALLREDUCE(a, c, 1, MPI_REAL ...) we suppose to get c = 0.4 by compiling with mpif77, it is true, I can get the right solution but when I compile with mpif77 - r8, I can't get the correct solution since the size of r8 is twice of the real number, so I tried MPI_ALLREDUCE(a, c, 2, MPI_REAL ...), but still can't get the right solution when I try MPI_ALLREDUCE(a, c, 1, MPI_DOUBLE_PRECISION ...), I got a run-time error said the communicator is NULL ...... anyone knows how to transfer a r8 real number in MPI? Thank you very much! I appreciate your help! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MPI error | florencenawei | OpenFOAM Installation | 3 | October 10, 2011 02:21 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
CGNS vs Tecplot Data Format | LWhitson2 | Main CFD Forum | 3 | July 1, 2011 14:50 |
[OpenFOAM] Cell Data to Point Data Issues | mcintoshjamie | ParaView | 2 | November 19, 2009 04:55 |
Data transfer | H. P. LIU | Main CFD Forum | 5 | May 19, 2003 11:47 |