PetscErrorCode PetscObjectListRemoveReference(PetscObjectList *fl,const char name[])
fl | - the object list | |
name | - the name to use for the object |
Notes: Use PetscObjectListAdd(PetscObjectList,const char name[],NULL) to truly remove the object from the list
Use this routine ONLY if you know that the object referenced will remain in existence until the pointing object is destroyed
Developer Note: this is to handle some cases that otherwise would result in having circular references so reference counts never got to zero