mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Moved current_work variable to particle object, and removed threadprivate tag from tally_derivs
This commit is contained in:
parent
70c9b7dd51
commit
1bb03f004a
9 changed files with 11 additions and 34 deletions
|
|
@ -28,7 +28,6 @@ namespace simulation {
|
|||
|
||||
extern "C" int current_batch; //!< current batch
|
||||
extern "C" int current_gen; //!< current fission generation
|
||||
extern "C" int64_t current_work; //!< index in source back of current particle
|
||||
extern "C" bool initialized; //!< has simulation been initialized?
|
||||
extern "C" double keff; //!< average k over batches
|
||||
extern "C" double keff_std; //!< standard deviation of average k
|
||||
|
|
@ -53,7 +52,7 @@ extern std::vector<int64_t> work_index;
|
|||
// Threadprivate variables
|
||||
extern "C" bool trace; //!< flag to show debug information
|
||||
|
||||
#pragma omp threadprivate(current_work, trace)
|
||||
#pragma omp threadprivate(trace)
|
||||
|
||||
} // namespace simulation
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue