Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Switched to regular do loop because it needs to be run in order
  • Loading branch information
daminton committed May 12, 2021
1 parent e4a00e5 commit b67327f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symba/symba_frag_pos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ function solve_wbs(u) result(x) ! solve with backward substitution

n = size(u,1)
allocate(x(n))
do concurrent(i = n:1:-1)
x(i) = (u(i, n + 1) - sum(u(i, i + 1:n) * x (i + 1:n))) / u(i, i)
do i = n,1,-1
x(i) = (u(i, n + 1) - sum(u(i, i + 1:n) * x(i + 1:n))) / u(i, i)
end do
return
end function solve_wbs
Expand Down

0 comments on commit b67327f

Please sign in to comment.