[petsc-users] DMGetMatrix segfault

Jed Brown jedbrown at mcs.anl.gov
Tue Jan 17 06:32:38 CST 2012


On Tue, Jan 17, 2012 at 01:44, Klaij, Christiaan <C.Klaij at marin.nl> wrote:

>  DMCompositeCreate(PETSC_COMM_WORLD,&pack);
>  DMCompositeAddDM(pack,da0);
>  DMCompositeAddDM(pack,da1);
>

Add this one line:

DMSetUp(pack);


I'll update petsc-dev to call DMSetUp() automatically when it is needed.


>  DMGetMatrix(pack,MATNEST,&A);
>  MatView(A,PETSC_VIEWER_DEFAULT);
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120117/04fe850d/attachment.htm>


More information about the petsc-users mailing list