|
[Sponsors] |
December 10, 2009, 04:42 |
Which way to decompose domain/grid
|
#1 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 410
Rep Power: 19 |
Hi,
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: do j=1,size_y do i=1,size_x f(i,j)=.... end do end do 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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
decompose with wallfunctions | linnemann | OpenFOAM Running, Solving & CFD | 4 | October 16, 2009 07:41 |
Make mpirun use 4 out of 8 possible cpus | christian_kunkelmann | OpenFOAM Running, Solving & CFD | 8 | September 15, 2008 17:58 |
Serial OK parallel failsmesh conversion problem | r2d2 | OpenFOAM Running, Solving & CFD | 15 | July 31, 2008 16:04 |
DecomposePar and sets | jhierroa | OpenFOAM Pre-Processing | 7 | January 25, 2008 10:48 |
[OpenFOAM] Polyhedrons | tj22 | ParaView | 2 | May 17, 2006 16:14 |