<div class="gmail_quote">On Tue, Jan 17, 2012 at 01:44, Klaij, Christiaan <span dir="ltr">&lt;<a href="mailto:C.Klaij@marin.nl">C.Klaij@marin.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1iy"> DMCompositeCreate(PETSC_COMM_WORLD,&amp;pack);<br>
  DMCompositeAddDM(pack,da0);<br>
  DMCompositeAddDM(pack,da1);<br></div></blockquote><div><br></div><div>Add this one line:</div><div><br></div><div>DMSetUp(pack);</div><div><br></div><div><br></div><div>I&#39;ll update petsc-dev to call DMSetUp() automatically when it is needed.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1iy">
  DMGetMatrix(pack,MATNEST,&amp;A);<br>
  MatView(A,PETSC_VIEWER_DEFAULT);</div></blockquote></div><br>