PetscObjectRemoveReference — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscObjectRemoveReference

Removes a reference link from a `PetscObject`’s object list without dereferencing the referenced object

## Synopsis

    #include "petscsys.h"
    PetscErrorCode PetscObjectRemoveReference(PetscObject obj, const char name[])

Logically collective

## Input Parameters

- obj - the `PetscObject` whose list will be modified

- name - the name under which the reference was composed

## Note

This is a private helper used to break composed reference cycles; user code should normally use `PetscObjectCompose()` with a `NULL` pointer to remove a composed object.

## See Also

`PetscObject`, `PetscObjectCompose()`, `PetscObjectQuery()`, `PetscObjectReference()`, `PetscObjectDereference()`

## Level

developer

## Location

src/sys/objects/inherit.c

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages