mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Remove thread_id and n_threads global variables
This commit is contained in:
parent
d980b4a5ea
commit
49bf4523c3
13 changed files with 37 additions and 81 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue