:orphan: # PetscObjectViewSAWs View the base portion of any object with an SAWs viewer ## Synopsis ``` #include "petscsys.h" */ PetscErrorCode PetscObjectViewSAWs(PetscObject obj, PetscViewer viewer) ``` Collective ## Input Parameters - ***obj -*** the `PetscObject` variable. Thus must be cast with a (`PetscObject`), for example, `PetscObjectSetName`((`PetscObject`)mat,name); - ***viewer -*** the SAWs viewer ## Note The object must have already been named before calling this routine since naming an object can be collective. ## Developer Note Currently this is called only on MPI rank 0 of `PETSC_COMM_WORLD` ## See Also [](sec_viewers), `PetscViewer`, `PetscObject`, `PetscObjectSetName()`, `PetscObjectSAWsViewOff()` ## Level advanced ## Location src/sys/classes/viewer/impls/ams/amsopen.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/ams/amsopen.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)