mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
misc small edits. Trying to track down threading bug that causes undefined behavior
This commit is contained in:
parent
69d782f315
commit
79bf18efa8
4 changed files with 22 additions and 8 deletions
|
|
@ -344,11 +344,11 @@ public:
|
|||
double tally_tracklength_ {0.0};
|
||||
double tally_leakage_ {0.0};
|
||||
|
||||
bool trace_; //!< flag to show debug information
|
||||
bool trace_ {false}; //!< flag to show debug information
|
||||
|
||||
double collision_distance_;
|
||||
|
||||
int n_event_;
|
||||
int n_event_ {0};
|
||||
};
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
|
|
@ -49,10 +49,10 @@ extern const RegularMesh* ufs_mesh;
|
|||
extern std::vector<double> k_generation;
|
||||
extern std::vector<int64_t> work_index;
|
||||
|
||||
// Threadprivate variables
|
||||
extern "C" bool trace; //!< flag to show debug information
|
||||
//// Threadprivate variables
|
||||
//extern "C" bool trace; //!< flag to show debug information
|
||||
|
||||
#pragma omp threadprivate(trace)
|
||||
//#pragma omp threadprivate(trace)
|
||||
|
||||
} // namespace simulation
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue