# TaoGetKSP

Gets the linear solver used by the optimization solver

## Synopsis

    #include "tao.h"
    int TaoGetKSP(TAO_SOLVER tao, KSP *ksp)

## Input Parameters

tao -the TAO solver

## Output Parameters

ksp -the KSP linear solver used in the optimization solver

## Keywords

Application

Level:intermediate
Location:src/petsctao/application/taoapp/taoapp_util.c
TAO Solver Index
Table of Contents

### Examples

src/bound/examples/tutorials/jbearing2.c.html
src/unconstrained/examples/tutorials/eptorsion1.c.html
src/unconstrained/examples/tutorials/eptorsion2.c.html
src/unconstrained/examples/tutorials/minsurf2.c.html