Skip to content

Commit

Permalink
refac(topological_sort): nested concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Sep 22, 2021
1 parent 274ea3b commit 6e6387c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dag_s.f90
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pure module function topological_sort(dag) result(order)

searched_and_ordered = searched_and_ordered_t(s = [integer::], o = [integer::])

do v = 1, size(dag%vertices)
do concurrent(v = 1:size(dag%vertices))
if (.not. any(v == searched_and_ordered%s)) &
searched_and_ordered = depth_first_search(v, [integer::], searched_and_ordered%o)
end do
Expand Down

0 comments on commit 6e6387c

Please sign in to comment.