PetscDSAddDiscretization — PETSc 3.25.0 documentation

Skip to main content
`Ctrl`+`K`

# PetscDSAddDiscretization

Adds a discretization object

## Synopsis

    #include "petscds.h"
    PetscErrorCode PetscDSAddDiscretization(PetscDS prob, PetscObject disc)

Not Collective

## Input Parameters

- prob - The `PetscDS` object

- disc - The discretization object, this can be a `PetscFE` or `PetscFV`

## See Also

`PetscWeakForm`, `PetscFE`, `PetscFV`, `PetscDSGetDiscretization()`, `PetscDSSetDiscretization()`, `PetscDSGetNumFields()`, `PetscDSCreate()`

## Level

beginner

## Location

src/dm/dt/interface/dtds.c

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