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

#include "petsc.h" 
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.

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