PetscLayout should be a PetscObject
I come across this every now and then. PetscLayout
would benefit from being a PetscObject
. It would allow
- use of
PetscCheckSameComm(someobj,1,layout,2)
- use of
PetscValidHeaderSpecific(layout,PETSC_LAYOUT_CLASSID,1)
- handling reference counting by
PetscObjectReference
instead of proprietaryPetscLayoutReference
- naming the layout
- etc.
Any reason why not do that?