Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
fix a bug when precond=.true.
  • Loading branch information
hjunlee authored Mar 28, 2018
1 parent a71e71b commit 9a4f1e3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/wannierise.F90
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ subroutine wann_main
! sub vars passed into other subs
allocate( csheet (num_wann, nntot, num_kpts), stat=ierr )
if (ierr/=0) call io_error('Error in allocating csheet in wann_main')
! allocate( cdodq (num_wann, num_wann, num_kpts),stat=ierr )
! if (ierr/=0) call io_error('Error in allocating cdodq in wann_main')
allocate( cdodq (num_wann, num_wann, num_kpts),stat=ierr )
if (ierr/=0) call io_error('Error in allocating cdodq in wann_main')
allocate( sheet (num_wann, nntot, num_kpts), stat=ierr )
if (ierr/=0) call io_error('Error in allocating sheet in wann_main')
allocate( rave (3, num_wann), stat=ierr )
Expand Down Expand Up @@ -211,8 +211,7 @@ subroutine wann_main
end if
end if

! csheet=cmplx_1;cdodq=cmplx_0
csheet=cmplx_1
csheet=cmplx_1;cdodq=cmplx_0
sheet=0.0_dp;rave=0.0_dp;r2ave=0.0_dp;rave2=0.0_dp;rguide=0.0_dp

! sub vars not passed into other subs
Expand Down Expand Up @@ -672,8 +671,8 @@ subroutine wann_main
if (ierr/=0) call io_error('Error in deallocating rave in wann_main')
deallocate(sheet,stat=ierr)
if (ierr/=0) call io_error('Error in deallocating sheet in wann_main')
! deallocate(cdodq,stat=ierr)
! if (ierr/=0) call io_error('Error in deallocating cdodq in wann_main')
deallocate(cdodq,stat=ierr)
if (ierr/=0) call io_error('Error in deallocating cdodq in wann_main')
deallocate(csheet,stat=ierr)
if (ierr/=0) call io_error('Error in deallocating csheet in wann_main')

Expand Down

0 comments on commit 9a4f1e3

Please sign in to comment.