From 27caf3cca78781191035a509c0a0fe88a1514c76 Mon Sep 17 00:00:00 2001 From: jakobtorben Date: Thu, 5 Dec 2024 13:05:32 +0100 Subject: [PATCH] Expose finesmoother pre/post smooth parameters in CPR setup --- opm/simulators/linalg/setupPropertyTree.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/simulators/linalg/setupPropertyTree.cpp b/opm/simulators/linalg/setupPropertyTree.cpp index 170d18990..ad923b86d 100644 --- a/opm/simulators/linalg/setupPropertyTree.cpp +++ b/opm/simulators/linalg/setupPropertyTree.cpp @@ -143,6 +143,8 @@ setupCPRW(const std::string& /*conf*/, const FlowLinearSolverParameters& p) prm.put("preconditioner.use_well_weights", "false"s); prm.put("preconditioner.add_wells", "true"s); prm.put("preconditioner.weight_type", "trueimpes"s); + prm.put("preconditioner.pre_smooth", 0); + prm.put("preconditioner.post_smooth", 1); prm.put("preconditioner.finesmoother.type", "ParOverILU0"s); prm.put("preconditioner.finesmoother.relaxation", 1.0); prm.put("preconditioner.verbosity", 0); @@ -191,6 +193,8 @@ setupCPR(const std::string& conf, const FlowLinearSolverParameters& p) } else { prm.put("preconditioner.weight_type", "trueimpesanalytic"s); } + prm.put("preconditioner.pre_smooth", 0); + prm.put("preconditioner.post_smooth", 1); prm.put("preconditioner.finesmoother.type", "ParOverILU0"s); prm.put("preconditioner.finesmoother.relaxation", 1.0); prm.put("preconditioner.verbosity", 0);