Commit b36dc21d authored by Gregor Michalicek's avatar Gregor Michalicek

Fix array access outside bounds in wannier/wannier.F90

The problem was that the dimension of the array inside the routine
was defined by wann%nparampts. This can be 0, even though the array
actually is larger.
parent 882bcac6
......@@ -138,7 +138,7 @@ CONTAINS
LOGICAL, INTENT (in) :: l_real
INTEGER, INTENT (in) :: nkpt
INTEGER, INTENT (IN) :: eig_idList(wann%nparampts)
INTEGER, INTENT (IN) :: eig_idList(:)!wann%nparampts)
!ccccccccccccccccc local variables cccccccccccccccccccc
INTEGER :: lmd,n,nmat,iter,ikpt,ikpt_b, pc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment