mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Making the point locator a thread private variable.
This commit is contained in:
parent
16e05739a9
commit
69de477bb5
2 changed files with 9 additions and 21 deletions
|
|
@ -538,7 +538,8 @@ private:
|
|||
|
||||
// Data members
|
||||
std::unique_ptr<libMesh::Mesh> m_; //!< pointer to the libMesh mesh instance
|
||||
std::vector<std::unique_ptr<libMesh::PointLocatorBase>> point_locators_; //!< pointers to locators for each thread
|
||||
static std::unique_ptr<libMesh::PointLocatorBase> PL_; //!< per-thread point locators
|
||||
#pragma omp threadprivate(PL_)
|
||||
std::unique_ptr<libMesh::EquationSystems> equation_systems_; //!< pointer to the equation systems of the mesh
|
||||
std::string eq_system_name_; //!< name of the equation system holding OpenMC results
|
||||
std::map<std::string, unsigned int> variable_map_; //!< mapping of variable names (tally scores) to libMesh variable numbers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue