Skip to content

Commit

Permalink
fix openmp race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanoseb committed Feb 19, 2024
1 parent e97c287 commit 33345c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omp/exec_dist.f90
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ subroutine exec_dist_transeq_compact(&
allocate(ud_recv_e(SZ, n_halo))
allocate(ud_recv_s(SZ, n_halo))

!$omp parallel do
!$omp parallel do private(ud, ud_recv_e, ud_recv_s)
do k = 1, n_block
call der_univ_dist( &
du(:, :, k), du_send_s(:, :, k), du_send_e(:, :, k), u(:, :, k), &
Expand Down

0 comments on commit 33345c0

Please sign in to comment.