|December 10, 2009, 04:42||
Which way to decompose domain/grid
Join Date: Mar 2009
Posts: 119Rep Power: 9
I'm working on a 2D Cartesian grid and I'm going to decompose the grid for MPI for my CFD Fortran code. The grid size is in the ratio of 110 x 70. I wonder how I should decompose the grid - horizontally or vertically?
For e.g., for 2 processors, to 2 55x70 grids, or 2 110x35 grids.
I thought that communication between grids will be less if I do 55x70 because communication will only involve 70 values. However, if it's 110x35, it'll involve 110 values
On the other hand, since Fortran is column major and hence I do the calculation:
If I choose 55x70, I'll need to "package" the 70 values in a chunk for efficient sending. However, if it's in 110x35, I can use mpi_isend directly since it's contagious data. So it seems that there's conflict. So does it really matter how I decompose the grid?
Thank you very much
|Thread||Thread Starter||Forum||Replies||Last Post|
|decompose with wallfunctions||linnemann||OpenFOAM Running, Solving & CFD||4||October 16, 2009 06:41|
|Make mpirun use 4 out of 8 possible cpus||christian_kunkelmann||OpenFOAM Running, Solving & CFD||8||September 15, 2008 16:58|
|Serial OK parallel failsmesh conversion problem||r2d2||OpenFOAM Running, Solving & CFD||15||July 31, 2008 15:04|
|DecomposePar and sets||jhierroa||Open Source Meshers: Gmsh, Netgen, CGNS, ...||7||January 25, 2008 10:48|
|Polyhedrons||tj22||OpenFOAM Paraview & paraFoam||2||May 17, 2006 15:14|