Skip to content

Add [Vec,Mat]GetState to public API

Jeremy L Thompson requested to merge jeremy/state into main

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

Merge request reports