TaoVecGetPetscVec

Set the address of a Vec equal to the location of the underlying Vec structure in this TaoVecPetsc object.

Synopsis

int TaoVecGetPetscVec( TaoVec* TV, Vec *V)

Input Parameter

TV - the TaoVecPetsc
V - the address of Vec

Output Parameter

V -the address of a specific Vec

Note

This routine does not create a Vec. It sets a pointer to the location of an existing Vec.

Note

The underlying PETSc Vec may also be obtained by Vec VV = (Vec) TV->VecObject;

Note

VecObject is a void* pointer that can be cast to the underlying Vec object.

Level:advanced
Location:src/petsctao/vector/taovec_petsc.c
TAO Solver Index
Table of Contents