# PetscObjectPublish

Publishs an object for the ALICE Memory Snooper

### Synopsis

    #include "petsc.h"
    int PetscObjectPublish(PetscObject obj)

Collective on PetscObject

### Input Parameters

obj -the Petsc variable Thus must be cast with a (PetscObject), for example, PetscObjectSetName((PetscObject)mat,name);

### See Also

PetscObjectSetName(), PetscViewerAMSOpen()

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

### Examples

src/vec/examples/tutorials/ex10.c.html
src/vec/examples/tutorials/ex13.c.html