Remove thread_id and n_threads global variables

This commit is contained in:
Paul Romano 2019-03-19 10:11:39 -05:00
parent d980b4a5ea
commit 49bf4523c3
13 changed files with 37 additions and 81 deletions

View file

@ -44,12 +44,8 @@ extern std::vector<int64_t> work_index;
// Threadprivate variables
extern "C" bool trace; //!< flag to show debug information
#ifdef _OPENMP
extern "C" int n_threads; //!< number of OpenMP threads
extern "C" int thread_id; //!< ID of a given thread
#endif
#pragma omp threadprivate(current_work, thread_id, trace)
#pragma omp threadprivate(current_work, trace)
} // namespace simulation