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

MPI combine data

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

LinkBack Thread Tools Display Modes
Old   April 26, 2010, 21:54
Default MPI combine data
New Member
Pham Anh Hung
Join Date: Mar 2010
Posts: 2
Rep Power: 0
tanphong is on a distinguished road
Send a message via Yahoo to tanphong
Dear all!

I am beginner for parallel computing with MPI for fortran.

The data has been received for different Processes, the combination of all data need for the post-process.

So, how should I do to combine data from all different processes?

Thanks in advance!
tanphong is offline   Reply With Quote

Old   May 17, 2010, 17:46
Default Collective Communication
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 36
Rep Power: 9
valgrinda is on a distinguished road

use MPI_GATHER, then all processes send data to the the root process. At the root process you can then assemble the data in the correct order and write out a solution file.
Note that this requires a lot of communication, especially if you have large data files. Maybe you can use a post-process tool that can deal with parallel output instead, like Paraview for example. That would be the most efficient solution.

valgrinda is offline   Reply With Quote

Old   May 19, 2010, 05:07
New Member
Nicholas F Camus
Join Date: Sep 2009
Location: London, England.
Posts: 21
Rep Power: 9
Killercam is on a distinguished road
You could also write a serial code to collect all the bits of the parralell data in a single array. Then write that array to file. Simples.


Killercam is offline   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
【Help】"Error: Update_Time_Level: invalid data" Chen FLUENT 2 August 24, 2014 07:51
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 10:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 11:12
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27
Transfer data in MPI hall Main CFD Forum 0 May 3, 2004 18:57

All times are GMT -4. The time now is 22:37.