misc small edits. Trying to track down threading bug that causes undefined behavior

This commit is contained in:
John Tramm 2020-01-06 20:52:48 +00:00
parent 69d782f315
commit 79bf18efa8
4 changed files with 22 additions and 8 deletions

View file

@ -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

View file

@ -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