[petsc-users] transfer vector data diagonally on DA

khalid ashraf khalid_eee at yahoo.com
Mon Apr 2 00:01:55 CDT 2012


Hi, 
I want to transfer vector data diagonally in the DA grid like 
 for (k=zs; k<zs+zm; k++) {
  for (j=ys; j<ys+ym; j++) {
  for (i=xs; i<xs+xm; i++) {
if(i!=mx-1 || j!=my-1 || k!=mz-1){
u_new[k+1][j+1][i+1]=u[k][j][i];}
}}}

Could you please suggest the best way to do it minimizing interprocessor assignments.

Thanks in advance. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120401/7289c2b9/attachment.htm>


More information about the petsc-users mailing list