[petsc-users] Check creation of an object

Koenraad Janssens koen.janssens at psi.ch
Tue Jun 21 04:18:49 CDT 2011


Is there a way to check whether an object has been created? I noticed PetSc
crashes when calling PCView on a declared PC that has not been created yet.


PC pc1;
PCView(pc1, PETSC_VIEWER_STDOUT_WORLD);

- Koen


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110621/19dd4607/attachment.htm>


More information about the petsc-users mailing list