process id in DA

Shao-Ching Huang schuang at ats.ucla.edu
Wed Nov 12 20:48:31 CST 2008


So it's in the "fortran order" (in the sense of mapping the memory
address of A(i,j,k)). I will write my own query routine following this
line.

Thanks,

Shao-Ching


On Wed, Nov 12, 2008 at 07:15:22PM -0600, Barry Smith wrote:
>
>   Doesn't look like it: but from the formula
>
>  rank = i + j*Mp + k*Mp*Np
>
>  i = rank % Mp
>
>  k = rank/(Mp*Np)
>
>  j = (rank  - k*Mp*Np)/Mp
>
>  Barry
>
> Or something similar.
>
> Mp, Np are the number of processes in the x and y directions
>




More information about the petsc-users mailing list