|
[Sponsors] |
May 26, 2013, 20:54 |
space averaging in 1 dimension using MPI
|
#1 |
New Member
Abbas Rahimi
Join Date: Jan 2013
Posts: 28
Rep Power: 13 |
Hello MPI experts,
Actually, I'm trying to find horizontal average of a velocity field "u(i,j,". My code is paralleled using MPI and the domain is decomposed in y and z directions (ipocess in y and jprocess in z). I tried many diffrent ways to calculate this averge but I failed. If the domain wasn't decomposed, I could simply do it in the following: do k=1:NZ do j=1:NY do i=1:NX ave(k)= ave(k)+u(i,j,k) end do end do end do but do this averaging for a decomposed domain is troublesome for me. I'll be grateful if any one could give me some hints. Thank you. Abbas |
|
Tags |
mpi, mpi send recv processor, space averaging |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mpirun, best parameters | pablodecastillo | Hardware | 18 | November 10, 2016 13:36 |
Sgimpi | pere | OpenFOAM | 27 | September 24, 2011 08:57 |
Building OpenFOAM on IRIX | lakeat | OpenFOAM Installation | 7 | July 16, 2008 08:27 |
Error using LaunderGibsonRSTM on SGI ALTIX 4700 | jaswi | OpenFOAM | 2 | April 29, 2008 11:54 |
Is Testsuite on the way or not | lakeat | OpenFOAM Installation | 6 | April 28, 2008 12:12 |