<div dir="ltr"><div><div>Hong,<br><br></div>currently in master there's an error in PetscSubcommSetTypeGeneral, namely in the loop starting at line 188<br><br><pre><span class="">for</span> <span class="">(</span><span class="">i</span><span class="">=</span><span class="">0</span><span class="">;</span> <span class="">i</span><span class=""><</span><span class="">2</span><span class="">*</span><span class="">size</span><span class="">;</span> <span class="">i</span><span class="">++</span><span class="">)</span> <span class="">{</span>
<a name="cl-189"></a>    <span class="">subsize</span><span class="">[</span><span class="">recvbuf</span><span class="">[</span><span class="">i</span><span class="">]]</span> <span class="">=</span> <span class="">recvbuf</span><span class="">[</span><span class="">i</span><span class="">+</span><span class="">1</span><span class="">];</span>
<a name="cl-190"></a><span class="">}</span></pre>recvbuf is allocated at line 178 as 2*size*sizeof(PetscMPIInt), and the loop tries to read at location 2*size<br><br></div>Could you please fix it?<br><br><br clear="all">
<div><div><div><div><br>-- <br><div dir="ltr"><pre cols="72"><font><span style="font-family:garamond,serif"><span style="font-family:garamond,serif"></span>Ph. D. Stefano Zampini<br>CINECA  
SuperComputing Applications and Innovations Department - SCAI
Via dei Tizii, 6 00185 Roma - ITALY
------------------------------------------------------------------------------------------------------------------------
Email: <a href="mailto:s.zampini@cineca.it" target="_blank"><span>s.zampini@cineca.it</span></a>
SkypeID: stefano.zampini
GoogleTalk: <a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>
Tel: <a value="+390644486720">+39 06.44486.707<br></a></span></font><a value="+390644486720"><font><span style="font-family:garamond,serif">------------------------------------------------------------------------------------------------------------------------
</span></font><br></a></pre></div>
</div></div></div></div></div>