# PetscObjectGetTabLevel
Gets the number of tabs that `PETSCVIEWERASCII` output for that object uses 
## Synopsis
```
#include "petscsys.h"    
PetscErrorCode PetscObjectGetTabLevel(PetscObject obj, PetscInt *tab)
```
Not Collective


## Input Parameter

- ***obj -*** any PETSc object, for example a `Vec`, `Mat` or `KSP`. Thus must be
cast with a (`PetscObject`), for example,
`PetscObjectGetTabLevel`((`PetscObject`)mat,&tab);



## Output Parameter

- ***tab -*** the number of tabs





## Note
This is used to manage the output from options that are embedded in other objects. For example
the `KSP` object inside a `SNES` object. By indenting each lower level further the hierarchy of objects
is very clear.


## See Also
 `PetscObjectIncrementTabLevel()`, `PETSCVIEWERASCII`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/gcomm.c.html#PetscObjectGetTabLevel">src/sys/objects/gcomm.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex77.c.html">src/ts/tutorials/ex77.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/gcomm.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
