Commit 01865c9e authored by Praetorius, Simon's avatar Praetorius, Simon

some Petsc-parameters now directly related to the solvers

parent 80fef7eb
......@@ -40,7 +40,7 @@ namespace AMDiS { namespace Parallel {
handleDirichletRows(true)
{
std::string tmp("");
Parameters::get(name + "->solver->petsc prefix", tmp);
Parameters::get(name + "->petsc prefix", tmp);
setKspPrefix(tmp);
std::string kspStr = "";
......@@ -51,9 +51,9 @@ namespace AMDiS { namespace Parallel {
if (kspStr != "")
PetscOptionsInsertString(kspStr.c_str());
Parameters::get("parallel->remove rhs null space", removeRhsNullspace);
Parameters::get("parallel->has constant null space", hasConstantNullspace);
Parameters::get("parallel->nullspace->const in comp",
Parameters::get(name + "->remove rhs null space", removeRhsNullspace);
Parameters::get(name + "->has constant null space", hasConstantNullspace);
Parameters::get(name + "->nullspace->const in comp",
constNullspaceComponent);
}
......
......@@ -78,7 +78,7 @@ namespace AMDiS { namespace Parallel {
PetscOptionsInsertString(("-" + kspPrefix + "ksp_monitor").c_str());
if (!matSolverPackage) {
Parameters::get("parallel->use zero start vector", zeroStartVector);
Parameters::get(name + "->use zero start vector", zeroStartVector);
}
Parameters::get("parallel->print matrix info", printMatInfo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment