From 0ed267210728447580093b6c5ee0017cfdd1eeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Mon, 22 Jul 2024 17:39:00 +0200 Subject: [PATCH] Fix command line option for reproducible summations Actually, the "naive" (non reproducible mode) could not be used. The code was always computing reproducible sums, which is the default. --- src/utils/PugsUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/PugsUtils.cpp b/src/utils/PugsUtils.cpp index 3e759212c..f89f543f9 100644 --- a/src/utils/PugsUtils.cpp +++ b/src/utils/PugsUtils.cpp @@ -130,7 +130,7 @@ initialize(int& argc, char* argv[]) app.add_flag("-p,--pause-on-error", pause_on_error, "Pause for debugging on unexpected error [default: false]"); bool reproducible_sums = true; - app.add_flag("--reproducible-sums,!--no-reproducible-sums", show_preamble, + app.add_flag("--reproducible-sums,!--no-reproducible-sums", reproducible_sums, "Special treatment of array sums to ensure reproducibility [default: true]"); app.add_flag("--parallel-output", parallel_output, "All MPI processes output to console [default: false]"); -- GitLab