PetscDAViewFromOptions — PETSc 3.25.2 documentation

Skip to main content
`Ctrl`+`K`

# PetscDAViewFromOptions

Processes command-line options to determine if a `PetscDA` should be viewed.

## Synopsis

    PetscErrorCode PetscDAViewFromOptions(PetscDA da, PetscObject obj, const char name[])

Collective

## Input Parameters

- da - the `PetscDA` context

- obj - optional object that provides the prefix for options

- name - option name to check

## Options Database Key

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

## See Also

PetscDA: Data Assimilation, `PetscDAView()`, `PetscObjectViewFromOptions()`

## Level

beginner

## Location

src/ml/da/interface/petscda.c

## Examples

src/ml/da/tutorials/ex2.c
src/ml/da/tutorials/ex3.c
src/ml/da/tutorials/ex1.c
src/ml/da/tutorials/ex4.c

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