27#ifndef OPM_THREAD_MANAGER_HPP
28#define OPM_THREAD_MANAGER_HPP
39#if defined(_OPENMP) || DOXYGEN
61 static void init(
bool queryCommandLineParameter =
true);
67 {
return static_cast<unsigned>(numThreads_); }
75 static int numThreads_;
Simplifies multi-threaded capabilities.
Definition threadmanager.hpp:36
static void registerParameters()
Register all run-time parameters of the thread manager.
Definition threadmanager.cpp:37
static unsigned maxThreads()
Return the maximum number of threads of the current process.
Definition threadmanager.hpp:66
static void init(bool queryCommandLineParameter=true)
Initialize number of threads used thread manager.
Definition threadmanager.cpp:44
static unsigned threadId()
Return the index of the current OpenMP thread.
Definition threadmanager.cpp:84
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37