Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the issue in plot_bvec #337

Merged
merged 2 commits into from
Jul 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/plot.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,6 @@ subroutine plot_bvec()
character(len=9) :: cdate, ctime
!
file_unit = io_file_unit()
open (file_unit, file=trim(seedname)//'.bvec', form='formatted', status='unknown', err=101)
call io_date(cdate, ctime)
header = 'written on '//cdate//' at '//ctime
!
Expand All @@ -1711,7 +1710,7 @@ subroutine plot_bvec()
write (file_unit, *) num_kpts, nntot
do nkp = 1, num_kpts
do nn = 1, nntot
write (file_unit, '(4F12.6)') bk(:, nn, nkp), wb(nn)
write (file_unit, '(4F14.8)') bk(:, nn, nkp), wb(nn)
enddo
enddo
close (file_unit)
Expand Down
2 changes: 1 addition & 1 deletion src/wannier_lib.F90
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ subroutine wannier_run(seed__name, mp_grid_loc, num_kpts_loc, &
time2 = io_time()
write (stdout, '(1x,a25,f11.3,a)') 'Time for wannierise ', time2 - time1, ' (sec)'

if (wannier_plot .or. bands_plot .or. fermi_surface_plot .or. write_hr) then
if (wannier_plot .or. bands_plot .or. fermi_surface_plot .or. write_hr .or. write_bvec) then
call plot_main()
time1 = io_time()
write (stdout, '(1x,a25,f11.3,a)') 'Time for plotting ', time1 - time2, ' (sec)'
Expand Down