CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Transfer data in MPI

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 3, 2004, 18:57
Default Transfer data in MPI
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!
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPI error florencenawei OpenFOAM Installation 3 October 10, 2011 01:21
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
CGNS vs Tecplot Data Format LWhitson2 Main CFD Forum 3 July 1, 2011 13:50
Cell Data to Point Data Issues mcintoshjamie OpenFOAM Paraview & paraFoam 2 November 19, 2009 04:55
Data transfer H. P. LIU Main CFD Forum 5 May 19, 2003 10:47

All times are GMT -4. The time now is 20:27.