Skip to content

Commit bfa0c9f

Browse files
Merge Pull Request #14715 from trilinos/Trilinos/malachi/fix-use-abs-diag-parsing
Automatically Merged using Trilinos Pull Request AutoTester PR Title: b"MueLu: Correctly read 'sa: use rowsumabs diagonal scaling' in parameter list interpreter" PR Author: MalachiTimothyPhillips
2 parents 07ac251 + 25eaa90 commit bfa0c9f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/muelu/src/Interface/MueLu_ParameterListInterpreter_def.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,7 @@ void ParameterListInterpreter<Scalar, LocalOrdinal, GlobalOrdinal, Node>::
705705
FactoryManager& manager, int levelID, std::vector<keep_pair>& keeps) const {
706706
MUELU_SET_VAR_2LIST(paramList, defaultList, "multigrid algorithm", std::string, multigridAlgo);
707707
MUELU_SET_VAR_2LIST(paramList, defaultList, "reuse: type", std::string, reuseType);
708-
bool useMaxAbsDiagonalScaling = false;
709-
if (defaultList.isParameter("sa: use rowsumabs diagonal scaling"))
710-
useMaxAbsDiagonalScaling = defaultList.get<bool>("sa: use rowsumabs diagonal scaling");
708+
MUELU_SET_VAR_2LIST(paramList, defaultList, "sa: use rowsumabs diagonal scaling", bool, useMaxAbsDiagonalScaling);
711709

712710
// === Smoothing ===
713711
// FIXME: should custom smoother check default list too?

0 commit comments

Comments
 (0)