Skip to content
Snippets Groups Projects
Commit f1f5d92a authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'petscSetUpPC' into 'master'

add pc setup in solverConfig

See merge request amdis/amdis!182
parents 402b0c81 b911820f
Branches
Tags
No related merge requests found
......@@ -76,6 +76,7 @@ void configDirectSolver(KSP ksp, std::string prefix)
PC pc;
KSPGetPC(ksp, &pc);
PCSetType(pc, PCLU);
PCSetUp(pc);
auto matSolverType = Parameters::get<std::string>(prefix + "->mat solver");
if (matSolverType)
PETSc::PCFactorSetMatSolverType(pc, matSolverType.value().c_str());
......@@ -101,6 +102,7 @@ void configPC(PC pc, std::string prefix)
if (pcType) {
pcTypeStr = pcType.value();
PCSetType(pc, pcTypeStr.c_str());
PCSetUp(pc);
}
if (pcTypeStr == "lu") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment