PetscDSGetHeightSubspace — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscDSGetHeightSubspace

Get the `PetscDS` for the trace subspace at a given height in the mesh.

## Synopsis

    #include "petscds.h"
    PetscErrorCode PetscDSGetHeightSubspace(PetscDS prob, PetscInt height, PetscDS *subprob)

Not Collective

## Input Parameters

- prob - the `PetscDS`

- height - the height (0 for the ambient cell, 1 for faces, etc.)

## Output Parameter

- subprob - the `PetscDS` for the trace subspace; `prob` itself is returned when `height` is 0

## Note

Only `PetscFE` discretizations are currently supported.

## See Also

`PetscDS`, `PetscFE`, `PetscFEGetHeightSubspace()`, `PetscDSGetSpatialDimension()`

## Level

developer

## Location

src/dm/dt/interface/dtds.c

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