VecStashViewFromOptions — PETSc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# VecStashViewFromOptions

Processes command line options to determine if/how a `VecStash` object is to be viewed.

## Synopsis

    #include "petscvec.h"
    PetscErrorCode VecStashViewFromOptions(Vec obj, PetscObject bobj, const char name[])

Collective

## Input Parameters

- obj - the `Vec` containing a stash

- bobj - optional other object that provides the prefix

- name - option to activate viewing

## Options Database Key

- -name [viewertype][:…] - option name and values. See `PetscObjectViewFromOptions()` for the possible arguments

## Developer Notes

This cannot use `PetscObjectViewFromOptions()` because it takes a `Vec` as an argument but does not use `VecView()`

## See Also

Vectors and Parallel Data, `Vec`, `VecStashSetInitialSize()`

## Level

intermediate

## Location

src/vec/vec/interface/vector.c

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