Actual source code: cookie.c
1: /*$Id: cookie.c,v 1.26 2001/03/23 23:20:38 balay Exp $*/
3: #include petsc.h
5: /*@
6: PetscRegisterCookie - Registers a new cookie for use with a
7: newly created PETSc object class. The user should pass in
8: a variable initialized to zero; then it will be assigned a cookie.
9: Repeated calls to this routine with the same variable will
10: not change the cookie.
12: Not Collective
14: Output Parameter:
15: . cookie - the cookie you have been assigned
17: Level: developer
19: Note:
20: The initial cookie variable MUST be set to zero on the
21: first call to this routine.
23: Concepts: cookie^getting new one
25: @*/
26: int PetscRegisterCookie(int *cookie)
27: {
28: SETERRQ(PETSC_ERR_SUP, "This function is now obsolete. Please use PetscLogClassRegister().");
29: }