mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Move filter_match_pointer to simulation.cpp to get around macOS bug
This commit is contained in:
parent
d624265ef8
commit
c4e60db2e4
2 changed files with 7 additions and 2 deletions
|
|
@ -565,4 +565,10 @@ extern "C" void k_generation_clear() { simulation::k_generation.clear(); }
|
|||
extern "C" void k_generation_reserve(int i) { simulation::k_generation.reserve(i); }
|
||||
extern "C" int64_t work_index(int rank) { return simulation::work_index[rank]; }
|
||||
|
||||
// This function was moved here to get around a bug on macOS whereby an invalid
|
||||
// pointer is returned for the threadprivate filter_matches
|
||||
extern "C" FilterMatch* filter_match_pointer(int indx) {
|
||||
return &simulation::filter_matches[indx];
|
||||
}
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue