Merge pull request #2618 from blattms/actually-use-trueimpes-for-cpr-trueimpes

Use "trueimpes" for weight_type for configuration cpr_trueimpes.
This commit is contained in:
Atgeirr Flø Rasmussen 2020-05-14 09:57:12 +02:00 committed by GitHub
commit 35cf505d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,14 @@ setupPropertyTree(const FlowLinearSolverParameters& p)
prm.put("verbosity", p.linear_solver_verbosity_);
prm.put("solver", "bicgstab");
prm.put("preconditioner.type", "cpr");
prm.put("preconditioner.weight_type","quasiimpes");
if (conf == "cpr_quasiimpes" )
{
prm.put("preconditioner.weight_type","quasiimpes");
}
else
{
prm.put("preconditioner.weight_type","trueimpes");
}
prm.put("preconditioner.finesmoother.type", "ParOverILU0");
prm.put("preconditioner.finesmoother.relaxation", 1.0);
prm.put("preconditioner.pressure_var_index",1);