:orphan:
# PetscSpaceSumSetConcatenate
Sets the concatenate flag for this space. A concatenated sum space will have number of components equal to the sum of the number of components of all subspaces. A non-concatenated, or direct sum space will have the same number of components as its subspaces . 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscSpaceSumSetConcatenate(PetscSpace sp, PetscBool concatenate)
```

## Input Parameters

- ***sp -*** the function space object
- ***concatenate -*** are subspaces concatenated components (true) or direct summands (false)





## See Also
 `PETSCSPACESUM`, `PetscSpace`, `PetscSpaceSumGetConcatenate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/sum/spacesum.c.html#PetscSpaceSumSetConcatenate">src/dm/dt/space/impls/sum/spacesum.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/space/impls/sum/spacesum.c.html#PetscSpaceSumSetConcatenate_Sum">PetscSpaceSumSetConcatenate_Sum in src/dm/dt/space/impls/sum/spacesum.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/space/impls/sum/spacesum.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)  
