PetscDSSetConstants — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscDSSetConstants

Set the array of constants passed to point functions

## Synopsis

    #include "petscds.h"
    PetscErrorCode PetscDSSetConstants(PetscDS prob, PetscInt numConstants, PetscScalar constants[])

Not Collective

## Input Parameters

- prob - The `PetscDS` object

- numConstants - The number of constants

- constants - The array of constants, `NULL` if there are none

## See Also

`PetscDS`, `PetscDSGetConstants()`, `PetscDSCreate()`

## Level

intermediate

## Location

src/dm/dt/interface/dtds.c

## Examples

src/ts/tutorials/ex30.c
src/ts/tutorials/ex77.c
src/snes/tutorials/ex62.c
src/ts/tutorials/ex76.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex12.c
src/snes/tutorials/ex76.c
src/snes/tutorials/ex71.c
src/snes/tutorials/ex69.c

Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages