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 the first call to this routine.

Keywords

register, cookie

Level:developer
Location:src/sys/src/objects/cookie.c
System Index
Table of Contents