# SNESSetFunctionDomainError tells `SNES` that the input vector, a proposed new solution, to your function you provided to `SNESSetFunction()` is not in the functions domain. For example, a step with negative pressure. ## Synopsis ``` #include "petscsnes.h" PetscErrorCode SNESSetFunctionDomainError(SNES snes) ``` Logically Collective ## Input Parameters - ***snes -*** the `SNES` context ## Note You can direct `SNES` to avoid certain steps by using `SNESVISetVariableBounds()`, `SNESVISetComputeVariableBounds()` or `SNESLineSearchSetPreCheck()`, `SNESLineSearchSetPostCheck()` ## See Also `SNESCreate()`, `SNESSetFunction()`, `SNESFunction`, `SNESSetJacobianDomainError()`, `SNESVISetVariableBounds()`, `SNESVISetComputeVariableBounds()`, `SNESLineSearchSetPreCheck()`, `SNESLineSearchSetPostCheck()` ## Level advanced ## Location src/snes/interface/snes.c ## Examples src/ts/tutorials/ex10.c.html
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/interface/snes.c) [Index of all SNES routines](index.md) [Table of Contents for all manual pages](/docs/manualpages/index.md) [Index of all manual pages](/docs/manualpages/singleindex.md)