Stefano,<div>Checking <span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">PCRedundant, I see that </span> current <span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">PCRedundant is hard-coded using PETSC_SUBCOMM_INTERLACED</span></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">which 'avoid data scattering from subcomm back to original comm'</span></font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">See ~petsc/src/sys/objects/subcomm.c - PetscSubcommCreate_interlaced()</span></font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">Unless you write a new implementation, </span></font><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">PETSC_SUBCOMM_CONTIGUOUS cannot be used</span></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">for </span></font><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">PCRedundant.</span></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><br></span></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse">Hong<br>
</span></font><br><div class="gmail_quote">On Mon, Oct 15, 2012 at 4:37 PM, Hong Zhang <span dir="ltr"><<a href="mailto:hzhang@mcs.anl.gov" target="_blank">hzhang@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Stefano :<br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hong, INTERLACED is the default since <a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/67df4fdba5bd" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/67df4fdba5bd</a><br>
<br>See also <a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/c04222d17a3d" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/c04222d17a3d</a></blockquote><div><br></div></div><div>Hmm, you are correct :-(</div>
<div class="im"><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hong, in petsc-dev, default is interlaced. I ran some tests, I got malloc errors when inserting mat values using subcomm of contiguous type. I think that PCRedundant with PETSC_SUBCOMM_CONTIGUOUS is buggy.</blockquote></div>
</div></div></blockquote><div> </div></div><div>PETSC_SUBCOMM_CONTIGUOUS was introduced for multiprocessor bjacobi preconditioner,</div><div>which has not been used/tested in other situations, likely causes problems.</div>
<div>
Can you send us a stand-alone code that reproduces the malloc errors?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Hong</div></font></span><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><br><br><div class="gmail_quote">
2012/10/15 Hong Zhang <span dir="ltr"><<a href="mailto:hzhang@mcs.anl.gov" target="_blank">hzhang@mcs.anl.gov</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Stefano :<div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>is it possible to use PCRedundant with PETSC_SUBCOMM_CONTIGUOUS as subcomm type?<br>
</blockquote></div><div>I think "PETSC_SUBCOMM_CONTIGUOUS" is the default for PCRedundant.</div><span><font color="#888888"><div><br></div><div>Hong</div></font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>Stefano<br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>Stefano<br>
</font></span></blockquote></div></div><br>
</blockquote></div><br></div>