<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><div>Hi, </div><div> I am having trouble with writing to global vector indexes using DA . </div><div>I am using the following function to get the starting point of a particular processor.</div><div> </div><div>DAGetCorners(da,&xs,&ys,&zs,&xm,&ym,&zm);</div><div><br></div><div>And then use it to iterate through the global indices. </div><div><div>for (k=zs; k<zs+zm; k++) {</div><div> for (j=ys; j<ys+ym; j++) {</div><div> for (i=xs; i<xs+xm; i++){</div><div>if (i<(mx/2)) //left half of the grid</div><div>{</div><div>vector[k][j][i]=1;</div><div>} else</div><div>{vector[k][j][i]=0;</div><div>}</div><div>}</div><div>}</div><div>}</div><div><br></div><div>But when I run this on multiple processors, xs, ys and
zs come out to be 0 for all the processors.</div><div>I expected them to be the starting point of the global DA index in a particular processor.</div><div> Could anyone tell me whats the problem ? Am I missing something here.</div><div>Thanks in advance.</div><div><br></div><div>Best regards.</div><div><br></div><div>Khalid</div></div><div style="position:fixed"></div>
</div><br>
</body></html>