PetscObjectGetNewTag

Gets a unique new tag from a PETSc object. All processors that share the object MUST call this routine EXACTLY the same number of times. This tag should only be used with the current object's communicator; do NOT use it with any other MPI communicator.

Synopsis

int PetscObjectGetNewTag(PetscObject obj,int *tag)
Collective on PetscObject

Input Parameter

obj -the PETSc object; this must be cast with a (PetscObject), for example, PetscObjectGetNewTag((PetscObject) mat,&tag);

Output Parameter

tag -the new tag

Keywords

object, get, new, tag

See Also

PetscObjectRestoreNewTag()

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