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
Fixed a two-part boolean statement on a possibly deallocated array that was not allowed by the new version of gfortran (10.2)
  • Loading branch information
daminton committed May 21, 2021
1 parent c044922 commit ef7691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/util_solve_linear_system.f90
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function solve_wbs(u) result(x) ! solve with backward substitution
integer(I4B) :: i,n

n = size(u, 1)
if (allocated(x) .and. (size(x) /= n)) deallocate(x)
if (allocated(x)) deallocate(x)
if (.not.allocated(x)) allocate(x(n))
call ieee_set_halting_mode(ieee_divide_by_zero, .false.)
do i = n, 1, -1
Expand Down

0 comments on commit ef7691e

Please sign in to comment.