mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Changed thread_safe_append() to require a value argument, and re-arranged create_fission_sites() in physics.cpp and physics_mg.cpp to use the new interface.
This commit is contained in:
parent
18b1166e67
commit
76e58e7b4c
3 changed files with 49 additions and 51 deletions
|
|
@ -69,7 +69,7 @@ public:
|
|||
//! \return The index in the array written to. In the event that this
|
||||
//! index would be greater than what was allocated for the container,
|
||||
//! return -1.
|
||||
int64_t thread_safe_append(const T& value = {})
|
||||
int64_t thread_safe_append(const T& value)
|
||||
{
|
||||
// Atomically capture the index we want to write to
|
||||
int64_t idx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue