petsc-3.14.5 2021-03-03
Report Typos and Errors

# VecViewFromOptions

View from Options

### Synopsis

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

Collective on Vec

### Input Parameters

| A | - the vector
| obj | - Optional object
| name | - command line option

### See Also

Vec, VecView, PetscObjectViewFromOptions(), VecCreate()

### Level

intermediate

### Location

src/vec/vec/interface/vector.c

### Examples

src/vec/vec/utils/tagger/tutorials/ex1.c.html
src/dm/impls/plex/tutorials/ex7.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex17.c.html
src/snes/tutorials/ex28.c.html
src/snes/tutorials/ex77.c.html
src/ts/tutorials/ex11.c.html
src/ts/tutorials/ex12.c.html
src/ts/tutorials/ex45.c.html
src/ts/tutorials/ex46.c.html
src/ts/tutorials/ex48.c.html
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages