PetscDiscType — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscDiscType

Identifies the discretization family attached to a `PetscDS` field

## Synopsis

    typedef enum {
      PETSC_DISC_NONE,
      PETSC_DISC_FE,
      PETSC_DISC_FV
    } PetscDiscType;

## Values

- `PETSC_DISC_NONE` - no discretization (or one not known to PETSc) is attached

- `PETSC_DISC_FE` - a `PetscFE` finite-element discretization is attached

- `PETSC_DISC_FV` - a `PetscFV` finite-volume discretization is attached

## See Also

`PetscDS`, `PetscFE`, `PetscFV`, `PetscDSGetDiscretization()`

## Level

intermediate

## Location

include/petscds.h

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