AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
SolverConfig.hpp
1#pragma once
2
3
4#include <petscpc.h>
5#include <petscksp.h>
6#include <string>
7
8
9namespace AMDiS {
10namespace PETSc {
11
12// initialize the KSP solver from the initfile
13void configKSP(KSP ksp, std::string prefix, bool initPC = true);
14
15// initialize a direct solver from the initfile
16void configDirectSolver(KSP ksp, std::string prefix);
17
18// initialize the preconditioner pc from the initfile
19void configPC(PC pc, std::string prefix);
20
21// provide initfile parameters for some PETSc KSP parameters
22void setKSPParameters(KSP ksp, char const* ksptype, std::string prefix);
23
24}} // end namespace AMDiS::PETSc