Add [Vec,Mat]GetState to public API
In libCEED and Ratel we use PetscObjectStateGet
to avoid some recalculation, but I hate reaching into private headers. This MR wraps PetscObjectStateGet
in a pair of utilities, VecGetState
and MatGetState
, so we can stop using the private header petsc/private/petscimpl.h
.
Thoughts?
Edited by Jeremy L Thompson