Skip to content

Commit

Permalink
Fix an unused variable that was creating a SEGFAULT
Browse files Browse the repository at this point in the history
As reported by Nicolas Tancogne-Dejean,
the bnddataunit(n) = io_file_unit() line
was creating a SEGFAULT because the array
was not allocated. But anyway, bnddataunit
is not really used in the code.
  • Loading branch information
giovannipizzi committed Sep 12, 2019
1 parent c658e7e commit bcb1648
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/postw90/kslice.F90
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ subroutine k_slice
fermi_lines_color, heatmap, plot_shc
character(len=120) :: filename, square

integer, allocatable :: bnddataunit(:)
complex(kind=dp), allocatable :: HH(:, :)
complex(kind=dp), allocatable :: delHH(:, :, :)
complex(kind=dp), allocatable :: UU(:, :)
Expand Down Expand Up @@ -349,7 +348,6 @@ subroutine k_slice
n1 = n/100
n2 = (n - n1*100)/10
n3 = n - n1*100 - n2*10
bnddataunit(n) = io_file_unit()
filename = trim(seedname)//'-bnd_' &
//achar(48 + n1)//achar(48 + n2)//achar(48 + n3)//'.dat'

Expand Down

0 comments on commit bcb1648

Please sign in to comment.