:orphan:
# PetscInfoEnabled
Checks whether a given `PetscClassid` is allowed to print using `PetscInfo()` 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscInfoEnabled(PetscClassId classid, PetscBool *enabled)
```
Not Collective


## Input Parameter

- ***classid -*** `PetscClassid` retrieved from a `PetscObject` e.g. `VEC_CLASSID`



## Output Parameter

- ***enabled -*** `PetscBool` indicating whether this classid is allowed to print





## Note
Use `PETSC_SMALLEST_CLASSID` to check if "sys" `PetscInfo()` calls are enabled. When PETSc is configured with debugging
support this function checks if classid >= `PETSC_SMALLEST_CLASSID`, otherwise it assumes valid classid.


## See Also
 [](sec_PetscInfo), `PetscInfo()`, `PetscInfoAllow()`, `PetscInfoGetInfo()`, `PetscObjectGetClassid()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/info/verboseinfo.c.html#PetscInfoEnabled">src/sys/info/verboseinfo.c</A>

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


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


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