mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Initialize one libMesh point locator per thread.
This commit is contained in:
parent
69de477bb5
commit
257d08624f
1 changed files with 9 additions and 3 deletions
12
src/mesh.cpp
12
src/mesh.cpp
|
|
@ -2121,9 +2121,15 @@ void LibMesh::initialize() {
|
|||
libMesh::ExplicitSystem& eq_sys =
|
||||
equation_systems_->add_system<libMesh::ExplicitSystem>(eq_system_name_);
|
||||
|
||||
PL_ = m_->sub_point_locator();
|
||||
PL_->set_contains_point_tol(FP_COINCIDENT);
|
||||
PL_->enable_out_of_mesh_mode();
|
||||
#pragma omp parallel
|
||||
{
|
||||
#pragma omp critical
|
||||
{
|
||||
PL_ = m_->sub_point_locator();
|
||||
}
|
||||
PL_->set_contains_point_tol(FP_COINCIDENT);
|
||||
PL_->enable_out_of_mesh_mode();
|
||||
}
|
||||
|
||||
first_element_ = *m_->elements_begin();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue