Skip to content

Commit

Permalink
Merge pull request #536 from qiaojunfeng/print_phase
Browse files Browse the repository at this point in the history
Print phase factor for plotting MLWF
  • Loading branch information
JeromeCCP9 authored Jan 20, 2025
2 parents 8847159 + d257610 commit 93f4abf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plot.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,10 @@ subroutine plot_wannier(wannier_plot, wvfn_read, wannier_data, print_output, u_m
end do
wmod = wmod/sqrt(real(wmod)**2 + aimag(wmod)**2)
wann_func(:, :, :, loop_w) = wann_func(:, :, :, loop_w)/wmod
write (stdout, '(6x,a,i4,7x,a,f11.6,SP,f11.6,"i")') "Wannier Function Num: ", &
wannier_plot%list(loop_w), "Phase Factor = ", 1/wmod
end do
write (stdout, *) ''
!
! Check the 'reality' of the WF
!
Expand Down

0 comments on commit 93f4abf

Please sign in to comment.