CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   gatherList() slow in parallel (https://www.cfd-online.com/Forums/openfoam-programming-development/149923-gatherlist-slow-parallel.html)

Carlen March 11, 2015 05:14

gatherList() slow in parallel
 
Hi foamers,

I am writing code for a parallel simulation in which I use gatherList() and scatterList() to collect centres of cells that have an alpha value greater than 0.5 (max is 1).
Pstream::gatherList(gatheredidCellAlpha);
Pstream::scatterList(gatheredidCellAlpha);

I will then do some calculations using these cells (adding up their volumes, getting their velocityVectorField, finding all their neigbours).

I have written codes for both serial and parallel mode, and with gatherList()/scatterList() parallel mode is slower than the serial mode with the same mesh!

Can anyone provide solution to such a problem?

Best regards,
Carlen


All times are GMT -4. The time now is 18:44.