# GetLinearSolver

Create and a linear solver used to solve this matrix

## Synopsis

    #include "tao_solver.h"
    int TaoApplication::GetLinearSolver(TaoMat *H, int flag, TaoLinearSolver **tksp)

Collective on TAO_SOLVER

## input Parameters

| H | - the operator to be used to solve
| flag | - indicates properties solver must have

## Output Parameters

tksp -the linear solver

## Types of linear solvers are

| 100 | - Solver for any square matrix
| 110 | - GMRES
| 200 | - Any symmetric matrix
| 210 | - MINRES
| 220 | - CG with Trust Region
| 300 | - Any symmetric positive definite
| 310 | - Conjugate Gradient

## Keywords

application, linear solver

Level:intermediate
Location:src/appobject/interface/taoappobject.c
TAO Solver Index
Table of Contents