From 2561de1bed15c1bd5706bbc6985992be7d17fb58 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 6 Jan 2017 13:15:45 +0100 Subject: [PATCH] fixed: default number of smoothing steps in amg to 1 iterative smoothers were broken --- src/LinAlg/LinSolParams.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LinAlg/LinSolParams.C b/src/LinAlg/LinSolParams.C index 956bb1fb..2a6a9844 100644 --- a/src/LinAlg/LinSolParams.C +++ b/src/LinAlg/LinSolParams.C @@ -146,6 +146,9 @@ bool LinSolParams::BlockParams::read(const TiXmlElement* elem, const std::string if (!hasValue("multigrid_finesmoother") && hasValue("multigrid_smoother")) addValue("multigrid_finesmoother", getStringValue("multigrid_smoother")); + if (!hasValue("multigrid_no_smooth") || getIntValue("multgrid_no_smooth") < 1) + addValue("multigrid_no_smooth", "1"); + return true; }