PetscRegisterCookie

Registers a new cookie for use with a newly created PETSc object class. The user should pass in a variable initialized to zero; then it will be assigned a cookie. Repeated calls to this routine with the same variable will not change the cookie.

Synopsis

int PetscRegisterCookie(int *cookie)
Not Collective

Output Parameter

cookie -the cookie you have been assigned

Note

The initial cookie variable MUST be set to zero on thefirst call to this routine.

Keywords

register, cookie

Location: src/sys/src/objectscookie.c
System Index
Table of Contents