:orphan: # PetscSpaceCreate Creates an empty `PetscSpace` object. The type can then be set with `PetscSpaceSetType()`. ## Synopsis ``` #include "petscfe.h" PetscErrorCode PetscSpaceCreate(MPI_Comm comm, PetscSpace *sp) ``` Collective ## Input Parameter - ***comm -*** The communicator for the `PetscSpace` object ## Output Parameter - ***sp -*** The `PetscSpace` object ## See Also `PetscSpace`, `PetscSpaceSetType()`, `PETSCSPACEPOLYNOMIAL` ## Level beginner ## Location src/dm/dt/space/interface/space.c ## Implementations PetscSpaceCreate_Point in src/dm/dt/space/impls/point/spacepoint.c
PetscSpaceCreate_Polynomial in src/dm/dt/space/impls/poly/spacepoly.c
PetscSpaceCreate_Ptrimmed in src/dm/dt/space/impls/ptrimmed/spaceptrimmed.c
PetscSpaceCreate_Subspace in src/dm/dt/space/impls/subspace/spacesubspace.c
PetscSpaceCreate_Sum in src/dm/dt/space/impls/sum/spacesum.c
PetscSpaceCreate_Tensor in src/dm/dt/space/impls/tensor/spacetensor.c
PetscSpaceCreate_WXY in src/dm/dt/space/impls/wxy/spacewxy.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/space/interface/space.c) [Index of all SPACE routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)