PCFactorSetMatSolverType

sets the software that is used to perform the factorization

Synopsis

#include "petscpc.h" 
PetscErrorCode  PCFactorSetMatSolverType(PC pc,MatSolverType stype)
Logically Collective on PC

Input Parameters

pc - the preconditioner context
stype - for example, superlu, superlu_dist

Options Database Key

-pc_factor_mat_solver_type <stype> - petsc, superlu, superlu_dist, mumps, cusparse

Level: intermediate

Note

By default this will use the PETSc factorization if it exists

See Also

MatGetFactor(), MatSolverType, PCFactorGetMatSolverType()

Location:factor.c