[petsc-users] VecValid gone in 3.2

Jed Brown jedbrown at mcs.anl.gov
Fri Oct 21 15:32:12 CDT 2011


On Fri, Oct 21, 2011 at 15:23, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

> VecValid is gone in 3.2 with no mention in the Changes. Is there any
> replacement?
>

You can use

PetscValidHeaderSpecific(vec,VEC_CLASSID,argnum);

if you are validating function arguments. VecValid() didn't have meaningful
semantics when called from user code and PetscValidHeaderSpecific is used
consistently in PETSc's input validation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111021/92f3155f/attachment.htm>


More information about the petsc-users mailing list