PetscFESetType — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscFESetType

Builds a particular `PetscFE`

## Synopsis

    #include "petscfe.h"
    PetscErrorCode PetscFESetType(PetscFE fem, PetscFEType name)

Collective

## Input Parameters

- fem - The `PetscFE` object

- name - The kind of FEM space

## Options Database Key

- -petscfe_type (basic|opencl|composite|vector) - Sets the `PetscFEType`

## See Also

`PetscFEType`, `PetscFE`, `PetscFEGetType()`, `PetscFECreate()`

## Level

intermediate

## Location

src/dm/dt/fe/interface/fe.c

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