7 #include <amdis/CreatorMap.hpp> 8 #include <amdis/linearalgebra/LinearSolver.hpp> 9 #include <amdis/linearalgebra/petsc/PetscRunner.hpp> 14 template <
class Mat,
class Vec>
15 class DefaultCreators< LinearSolverInterface<Mat,Vec> >
17 using Solver =
typename LinearSolver<Mat, Vec, PetscRunner<Mat,Vec>>::Creator;
18 using Map = CreatorMap<LinearSolverInterface<Mat,Vec>>;
24 static const std::vector<std::string> kspTypes_ = {
25 KSPCG, KSPFCG, KSPGMRES, KSPFGMRES, KSPPREONLY, KSPMINRES, KSPCGS, KSPBCGS, KSPCGNE
130 auto solver =
new Solver;
131 Map::addCreator(
"default", solver);
132 Map::addCreator(
"direct", solver);
133 for (
auto const& kspType : kspTypes_)
134 Map::addCreator(kspType, solver);
Contains all classes needed for solving linear and non linear equation systems.
Definition: AdaptBase.hpp:6
void init(int &argc, char **&argv, std::string const &initFileName="")
Initialized the Environment for MPI.
Definition: AMDiS.hpp:29