1#ifndef DUNE_FEM_PETSCAVAILABLE_HH
2#define DUNE_FEM_PETSCAVAILABLE_HH
6#include <dune/fem/io/parameter.hh>
7#include <dune/fem/solver/inverseoperatorinterface.hh>
8#include <dune/fem/solver/parameter.hh>
29 enum class PetscSolver {
30 cg = SolverParameter::cg,
31 bicgstab = SolverParameter::bicgstab,
32 gmres = SolverParameter::gmres,
33 minres = SolverParameter::minres,
34 bicg = SolverParameter::bicg,
35 preonly = SolverParameter::preonly,
41 static std::vector< int > supportedSolverMethods()
43 return std::vector< int > ({
44 SolverParameter::gmres,
46 SolverParameter::bicgstab,
47 SolverParameter::minres,
48 SolverParameter::bicg,
49 SolverParameter::preonly });
52 static std::vector< int > supportedPreconditionMethods()
54 return std::vector< int > ({
57 SolverParameter::gauss_seidel,
59 SolverParameter::ssor,
60 SolverParameter::jacobi,
66 static std::vector<std::string> extraPreconditionMethods()
68 return std::vector< std::string > (
PETSc KSP solver context for PETSc Mat and PETSc Vec.
Definition: petscavailable.hh:27
constexpr GeometryType none(unsigned int dim)
Returns a GeometryType representing a singular of dimension dim.
Definition: type.hh:471
Dune namespace.
Definition: alignedallocator.hh:13