Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed bug in t from scale
  • Loading branch information
Austin Blevins committed Jul 20, 2023
1 parent aa92e35 commit 6578dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/util_t_from_scale.f90
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function util_t_from_scale(scale,start,finish) result(time)
temp = 0._DP

if (abs(temp-scale)<tol) then
ans = 0.0_DP
time = 0.0_DP
else
do while(i .lt. maxiter)
c = (a+b)/2
Expand All @@ -59,7 +59,7 @@ function util_t_from_scale(scale,start,finish) result(time)
end do
end if

if (ans .lt. 0) then
if (time .lt. 0) then
write(*,*) "ERROR in util_t_from_scale: Maximum iterations reached!"
write(*,*) scale, maxiter
end if
Expand Down

0 comments on commit 6578dc5

Please sign in to comment.