<div dir="ltr">Hi all, <div><br><div>I am a novice user and I am trying to write my first project in PETSc. In my code, I need to get vector values that may be residing on other processes. I noticed that VecGetValues can get values on the same processor.  For instance, I need a calculation like this:</div><div><br></div><div>temp = (dy(i) + dy(i + xmax));           /// xmax is length along x - direction</div><div><br></div><div>where dy(i + xmax) may be on another processes. What is the best way to accomplish this?</div><div><br></div><div>Thanks</div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div></div><font size="2"><b><span style="color:rgb(7,55,99)"><i>Najeeb Ahmad</i></span></b></font></div><div><font size="2"><b><font color="#073763"><i><br></i></font></b></font><div dir="ltr" style="font-size:small"><div><font size="2"><b><span style="color:rgb(120,63,4)">Research and Teaching Assistant</span><br></b></font></div><div><font size="2"><b><font color="#000000">PARallel and MultiCORE Computing Laboratory (ParCoreLab)</font><span style="color:rgb(120,63,4)"> </span></b></font></div><font size="2"><b>Computer Science and Engineering<br></b></font></div><div style="font-size:small"><font size="2"><b>Koç University, Istanbul, Turkey</b></font></div></div></div></div><div><font size="2"><b><br></b></font></div></div></div></div></div></div></div></div></div></div></div>