|
[Sponsors] |
April 26, 2010, 21:54 |
MPI combine data
|
#1 |
New Member
|
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! |
|
May 17, 2010, 17:46 |
Collective Communication
|
#2 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 396
Rep Power: 18 |
Hei,
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. Cheers Hans |
|
May 19, 2010, 05:07 |
|
#3 |
New Member
Nicholas F Camus
Join Date: Sep 2009
Location: London, England.
Posts: 21
Rep Power: 16 |
Hei,
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. Cheers, NFC |
|
|
|
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 17:27 |
Transfer data in MPI | hall | Main CFD Forum | 0 | May 3, 2004 18:57 |