# PetscDSGetConstants
Returns the array of constants passed to point functions 
## Synopsis
```
#include "petscds.h" 
PetscErrorCode PetscDSGetConstants(PetscDS prob, PetscInt *numConstants, const PetscScalar *constants[])
```
Not collective


## Input Parameter

- ***prob -*** The `PetscDS` object



## Output Parameters

- ***numConstants -*** The number of constants
- ***constants    -*** The array of constants, NULL if there are none





## See Also
 `PetscDS`, `PetscDSSetConstants()`, `PetscDSCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/interface/dtds.c.html#PetscDSGetConstants">src/dm/dt/interface/dtds.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/interface/dtds.c)


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