Make sure incrementing of overlap_check_cnt is thread-safe

This commit is contained in:
Paul Romano 2020-04-22 22:33:34 -05:00
parent e9fd2ed3d1
commit 9d8600134a

View file

@ -55,6 +55,7 @@ bool check_cell_overlap(Particle* p, bool error)
}
return true;
}
#pragma omp atomic
++model::overlap_check_count[index_cell];
}
}