LMESetType — SLEPc 3.24.3 documentation

Skip to main content
`Ctrl`+`K`

# LMESetType

Selects the particular solver to be used in the `LME` object.

## Synopsis

    #include "slepclme.h"
    PetscErrorCode LMESetType(LME lme,LMEType type)

Logically Collective

## Input Parameters

- lme - the linear matrix equation solver context

- type - a known method

## Options Database Key

- -lme_type <type> - sets the method; use -help for a list of available methods

## Notes

See `LMEType` for available methods. The default is `LMEKRYLOV`.

Normally, it is best to use the `LMESetFromOptions()` command and then set the `LME` type from the options database rather than by using this routine. Using the options database provides the user with maximum flexibility in evaluating the different available methods. The `LMESetType()` routine is provided for those situations where it is necessary to set the iterative solver independently of the command line or options database.

## See Also

LME: Linear Matrix Equation, `LMEType`

## Level

intermediate

## Location

src/lme/interface/lmebasic.c

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