From dd0895296707ef5a0905a600621978020536f079 Mon Sep 17 00:00:00 2001 From: Vegard Kippe Date: Thu, 11 Jul 2024 15:55:34 +0200 Subject: [PATCH] Update after move of ThreadsPerProcess from Properties to Parameters --- opm/simulators/flow/FlowMain.hpp | 2 +- opm/simulators/flow/Main.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/flow/FlowMain.hpp b/opm/simulators/flow/FlowMain.hpp index c5666664f..3ae346498 100644 --- a/opm/simulators/flow/FlowMain.hpp +++ b/opm/simulators/flow/FlowMain.hpp @@ -388,7 +388,7 @@ namespace Opm { // Issue a warning if both OMP_NUM_THREADS and --threads-per-process are set, // but let the environment variable take precedence. const int default_threads = 2; - const int requested_threads = Parameters::get(); + const int requested_threads = Parameters::get(); const char* env_var = getenv("OMP_NUM_THREADS"); int omp_num_threads = -1; try { diff --git a/opm/simulators/flow/Main.hpp b/opm/simulators/flow/Main.hpp index 470d4344b..5c4d913f5 100644 --- a/opm/simulators/flow/Main.hpp +++ b/opm/simulators/flow/Main.hpp @@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License along with OPM. If not, see . */ -#ifndef OPM_MAIN_HEADER_INCLUDED +#ifndef OPM_MAIN_HEADER_INCLUDEDp #define OPM_MAIN_HEADER_INCLUDED #include @@ -715,7 +715,7 @@ private: // Hence we duplicate the code of setupParallelism to get the number of threads. static bool first_time = true; const int default_threads = 2; - const int requested_threads = Parameters::get(); + const int requested_threads = Parameters::get(); const char* env_var = getenv("OMP_NUM_THREADS"); int omp_num_threads = -1; try {