Validate a Object
z.sheng at ewi.tudelft.nl
Wed Oct 24 08:50:27 CDT 2007
I am programming a simulator with PetSc, and I need to create matrix and
vector which shall be destoried in the end.
However, the problem is : sometimes, a matrix is declared but never
created, and if I try to destory this object, Petsc would dump error.
Is there anyway to check whether a Mat or Vec has been created or not?
MatDestory A; // this will dump error, which function should I use to
check whether A is created?
More information about the petsc-users