petsc-3.3-p7 2013-05-11

PetscOListAdd

Adds a new object to an PetscOList

Synopsis

PetscErrorCode  PetscOListAdd(PetscOList *fl,const char name[],PetscObject obj)

Input Parameters

fl - the object list
name - the name to use for the object
obj - the object to attach

Notes: Replaces item if it is already in list. Removes item if you pass in a PETSC_NULL object.

Use PetscOListFind() or PetscOListReverseFind() to get the object back

See Also

PetscOListDestroy(), PetscOListFind(), PetscOListDuplicate(), PetscOListReverseFind(), PetscOListDuplicate()

Level:developer
Location:
src/sys/objects/olist.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages