Skip to content

Commit

Permalink
Fix OpenMP error. Variable marked private did not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
cianciosa committed May 31, 2024
1 parent 5377034 commit e58b7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/korc_random.f90
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ SUBROUTINE random_U_context_destruct(this)

! Start of executable code
IF (ASSOCIATED(this%states)) THEN
!$OMP PARALLEL DEFAULT(SHARED) PRIVATE(thread_num)
!$OMP PARALLEL DEFAULT(SHARED)
CALL random_destroy_U(this%states(get_thread_number()))
!$OMP END PARALLEL
DEALLOCATE(this%states)
Expand All @@ -237,7 +237,7 @@ SUBROUTINE random_N_context_destruct(this)

! Start of executable code
IF (ASSOCIATED(this%states)) THEN
!$OMP PARALLEL DEFAULT(SHARED) PRIVATE(thread_num)
!$OMP PARALLEL DEFAULT(SHARED)
CALL random_destroy_N(this%states(get_thread_number()))
!$OMP END PARALLEL
DEALLOCATE(this%states)
Expand Down

0 comments on commit e58b7aa

Please sign in to comment.