PetscSpaceSetType — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscSpaceSetType

Builds a particular `PetscSpace`

## Synopsis

    #include "petscfe.h"
    PetscErrorCode PetscSpaceSetType(PetscSpace sp, PetscSpaceType name)

Collective

## Input Parameters

- sp - The `PetscSpace` object

- name - The kind of space

## Options Database Key

- -petscspace_type - Sets the `PetscSpace` type; use -help for a list of available types

## See Also

`PetscSpace`, `PetscSpaceType`, `PetscSpaceGetType()`, `PetscSpaceCreate()`

## Level

intermediate

## Location

src/dm/dt/space/interface/space.c

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