:orphan:
# PetscDetermineInitialFPTrap
Attempts to determine the floating point trapping that exists when `PetscInitialize()` is called 
## Synopsis
```
#include "petscsys.h"  
PetscErrorCode PetscDetermineInitialFPTrap(void)
```
Not Collective


## Note
Currently only supported on Linux and MacOS. Checks if divide by zero is enable and if so declares that trapping is on.




## See Also
 `PetscFPTrapPush()`, `PetscFPTrapPop()`, `PetscDetermineInitialFPTrap()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/error/fp.c.html#PetscDetermineInitialFPTrap">src/sys/error/fp.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/error/fp.c)


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