VecsCreateSeq — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# VecsCreateSeq

Creates a `Vecs` object holding `p` sequential `Vec`s of length `m`, all stored contiguously in a single underlying `Vec`

## Synopsis

    PetscErrorCode VecsCreateSeq(MPI_Comm comm, PetscInt p, PetscInt m, Vecs *x)

Collective

## Input Parameters

- comm - the MPI communicator (typically `PETSC_COMM_SELF`)

- p - the number of vectors

- m - the length of each vector

## Output Parameter

- x - the newly created `Vecs`

## See Also

`Vecs`, `VecsCreateSeqWithArray()`, `VecsDuplicate()`, `VecsDestroy()`, `VecCreateSeq()`

## Level

advanced

## Location

src/vec/vec/utils/vecs.c

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