<div dir="ltr">I'm using "<span style="color:rgb(0,0,0);white-space:pre-wrap">PETSC_COMM_SELF" communicator for running n serial independent processes, I need to sum up a certain vector from the n processes in one vector, however, vectors involved in each process vary in size, and I couldn't find any function to define custom ownership ranges, so assuming I have a 4 processes run with each computing an "x" vector as follows:</span><div>
<font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">1. process (1) with x of length 51</span></font></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">2. process (2) with x of length 49</span></div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">3. process (3) with x of length 52</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">4. process (4) with x of length 48</span></div><div><font color="#000000"><span style="white-space:pre-wrap"><br>
</span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">The processes sum up to 100 elements, when I define a vector "x_all" of size "100" with "</span></font><span style="color:rgb(0,0,0);white-space:pre-wrap">PETSC_COMM_WORLD" communicator, the ownership ranges are equal, which isn't the case, how to customize them ?</span><font color="#000000"><span style="white-space:pre-wrap"><br>
</span></font><div><br></div>-- <br><div dir="ltr">Mohamamd Bahaa ElDin</div>
</div></div>