On Wed, Mar 7, 2012 at 1:54 AM, Klaij, Christiaan <span dir="ltr">&lt;<a href="mailto:C.Klaij@marin.nl">C.Klaij@marin.nl</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt; &gt; &gt;Could you get a stack trace with gdb? Also, I ran on petsc-dev.<br>
&gt; &gt;<br>
&gt; &gt; Breakpoint 1, vecsumsegv::vecsumsegv (this=0x7fffffffd310, m=3, n=4)<br>
&gt; &gt;    at vecsumsegv.cc:28<br>
&gt; &gt; 28        ierr = VecSum(x,&amp;val);<br>
&gt; &gt; (gdb) next<br>
&gt;<br>
&gt;<br>
&gt; This was fixed in petsc-dev.<br>
&gt;<br>
&gt; <a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/3b9bc425b217" target="_blank">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/3b9bc425b217</a><br>
<br>
Thanks, I&#39;ll switch to petsc-dev for this.<br>
<br>
&gt;<br>
&gt;<br>
&gt; Why are you using VecNest? It causes more harm than good in all but some<br>
&gt; very special circumstances.<br>
<br>
I&#39;m using it to experiment with PETSc&#39;s block preconditioners. In<br>
short, I have a block matrix for the 2D Stokes eqs with the<br>
variables arranged as (u1,...,uN,v1,...,vN,p1,...pN). The matrix<br>
has the form A = [Q G, D 0]. I&#39;m using VecCreateNest to assemble<br>
the vector x = [u p], just like I use MatCreateNest to assemble<br>
the matrix A from the blocks Q, G and D. The index sets are the<br>
ones you helped me with in a previous thread<br>
(<a href="https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2012-February/012262.html" target="_blank">https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2012-February/012262.html</a>)<br></blockquote><div><br></div><div>
This is just an optimization for block PCs, and for vectors I think it makes almost</div><div>no difference.</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

dr. ir. Christiaan Klaij<br>
CFD Researcher<br>
Research &amp; Development<br>
E mailto:<a href="mailto:C.Klaij@marin.nl">C.Klaij@marin.nl</a><br>
T <a href="tel:%2B31%20317%2049%2033%2044" value="+31317493344">+31 317 49 33 44</a><br>
<br>
MARIN<br>
2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands<br>
T <a href="tel:%2B31%20317%2049%2039%2011" value="+31317493911">+31 317 49 39 11</a>, F <a href="tel:%2B31%20317%2049%2032%2045" value="+31317493245">+31 317 49 32 45</a>, I <a href="http://www.marin.nl" target="_blank">www.marin.nl</a><br>

<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>