From 5ba8e87f552c6fae32b9940091b2499ec02e7f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20T=C3=B3th?= Date: Tue, 14 Jan 2025 16:42:31 +0100 Subject: [PATCH] Uncomment OpmLog warning --- opm/simulators/flow/FlowMain.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opm/simulators/flow/FlowMain.hpp b/opm/simulators/flow/FlowMain.hpp index f7315ed90..7e5c5655f 100644 --- a/opm/simulators/flow/FlowMain.hpp +++ b/opm/simulators/flow/FlowMain.hpp @@ -302,10 +302,9 @@ namespace Opm { if (result.ec == std::errc() && omp_num_threads > 0) { // Set threads to omp_num_threads if it was successfully parsed and is positive threads = omp_num_threads; - // Warning in 'Main.hpp', where this code is duplicated - // if (requested_threads > 0) { - // OpmLog::warning("Environment variable OMP_NUM_THREADS takes precedence over the --threads-per-process cmdline argument."); - // } + if (requested_threads > 0) { + OpmLog::warning("Environment variable OMP_NUM_THREADS takes precedence over the --threads-per-process cmdline argument."); + } } else { OpmLog::warning("Invalid value for OMP_NUM_THREADS environment variable."); }