Move filter_match_pointer to simulation.cpp to get around macOS bug

This commit is contained in:
Paul Romano 2018-11-16 08:53:14 -06:00
parent d624265ef8
commit c4e60db2e4
2 changed files with 7 additions and 2 deletions

View file

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