# TaoWrapKSP

Create a new TaoLinearSolver object using PETSc KSP.

## Synopsis

    int TaoWrapKSP( KSP S, TaoLinearSolverPetsc ** SS)

## Input Parameter

S -a KSP

## Output Parameter

SS -new TaoMat

## Note

A TaoLinearSolverPetsc is an object with the methods of an abstract TaoLinearSolver object. A TaoLinearSolverPetsc contains an implementation of the TaoLinearSolver methods. Routines using these vectors should declare a pointer to a TaoLinearSolver, assign this pointer to the address of a TaoLinearSolver object, use the pointer to invoke methods on the object, and use this pointer as an argument when calling other routines. This usage is different from the usage of a PETSc KSP. In PETSc, applications will typically declare a KSP, and pass it as an argument into routines. That is, applications will typically declare a pointer to a TaoLinearSolver and use the pointer, or declare a KSP and use it directly.

Level:developer
Location:src/petsctao/linearsolver/taolinearsolver_petsc.c
TAO Solver Index
Table of Contents