mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Make sure incrementing of overlap_check_cnt is thread-safe
This commit is contained in:
parent
e9fd2ed3d1
commit
9d8600134a
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ bool check_cell_overlap(Particle* p, bool error)
|
|||
}
|
||||
return true;
|
||||
}
|
||||
#pragma omp atomic
|
||||
++model::overlap_check_count[index_cell];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue