Lines Matching refs:fl

29 PetscErrorCode PetscObjectListRemoveReference(PetscObjectList *fl, const char name[])  in PetscObjectListRemoveReference()  argument
35 PetscAssertPointer(fl, 1); in PetscObjectListRemoveReference()
37 nlist = *fl; in PetscObjectListRemoveReference()
69 PetscErrorCode PetscObjectListAdd(PetscObjectList *fl, const char name[], PetscObject obj) in PetscObjectListAdd() argument
75 PetscAssertPointer(fl, 1); in PetscObjectListAdd()
77 nlist = *fl; in PetscObjectListAdd()
84 else if (nlist->next) *fl = nlist->next; in PetscObjectListAdd()
85 else *fl = NULL; in PetscObjectListAdd()
96 nlist = *fl; in PetscObjectListAdd()
117 if (!*fl) *fl = olist; in PetscObjectListAdd()
118 else { /* go to end of list */ nlist = *fl; in PetscObjectListAdd()
140 PetscObjectList tmp, fl; in PetscObjectListDestroy() local
144 fl = *ifl; in PetscObjectListDestroy()
145 while (fl) { in PetscObjectListDestroy()
146 tmp = fl->next; in PetscObjectListDestroy()
147 if (!fl->skipdereference) PetscCall(PetscObjectDereference(fl->obj)); in PetscObjectListDestroy()
148 PetscCall(PetscFree(fl)); in PetscObjectListDestroy()
149 fl = tmp; in PetscObjectListDestroy()
176 PetscErrorCode PetscObjectListFind(PetscObjectList fl, const char name[], PetscObject *obj) in PetscObjectListFind() argument
181 while (fl) { in PetscObjectListFind()
183 PetscCall(PetscStrcmp(name, fl->name, &match)); in PetscObjectListFind()
185 *obj = fl->obj; in PetscObjectListFind()
188 fl = fl->next; in PetscObjectListFind()
215 PetscErrorCode PetscObjectListReverseFind(PetscObjectList fl, PetscObject obj, const char *name[], … in PetscObjectListReverseFind() argument
221 while (fl) { in PetscObjectListReverseFind()
222 if (fl->obj == obj) { in PetscObjectListReverseFind()
223 *name = fl->name; in PetscObjectListReverseFind()
224 if (skipdereference) *skipdereference = fl->skipdereference; in PetscObjectListReverseFind()
227 fl = fl->next; in PetscObjectListReverseFind()
248 PetscErrorCode PetscObjectListDuplicate(PetscObjectList fl, PetscObjectList *nl) in PetscObjectListDuplicate() argument
252 while (fl) { in PetscObjectListDuplicate()
253 PetscCall(PetscObjectListAdd(nl, fl->name, fl->obj)); in PetscObjectListDuplicate()
254 fl = fl->next; in PetscObjectListDuplicate()