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
9
namespace
AMDiS {
10
namespace
PETSc {
11
12
// initialize the KSP solver from the initfile
13
void
configKSP(KSP ksp, std::string prefix,
bool
initPC =
true
);
14
15
// initialize a direct solver from the initfile
16
void
configDirectSolver(KSP ksp, std::string prefix);
17
18
// initialize the preconditioner pc from the initfile
19
void
configPC(PC pc, std::string prefix);
20
21
// provide initfile parameters for some PETSc KSP parameters
22
void
setKSPParameters(KSP ksp,
char
const
* ksptype, std::string prefix);
23
24
}}
// end namespace AMDiS::PETSc
amdis
linearalgebra
petsc
SolverConfig.hpp
Generated by
1.9.4