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

write_u_matrices not written #139

Closed
giovannipizzi opened this issue Jun 2, 2017 · 0 comments · Fixed by #177
Closed

write_u_matrices not written #139

giovannipizzi opened this issue Jun 2, 2017 · 0 comments · Fixed by #177
Assignees
Labels
Milestone

Comments

@giovannipizzi
Copy link
Member

plot_main() is called only in some cases. Some routines in it, therefore, are sometimes not called (e.g. write_u_matrices).

In fact, write_u_matrices is checked only inside plot_main(), but plot_main is called in wannier_prog.F90 only if (wannier_plot .or. bands_plot .or. fermi_surface_plot .or. write_hr).
One needs to extend the if statements (or manage the plotting differently). (Plotting of course happens if at least one of the flags is also set in the input).

@giovannipizzi giovannipizzi added this to the v2.2 milestone Jun 2, 2017
@giovannipizzi giovannipizzi self-assigned this Jun 2, 2017
giovannipizzi added a commit to giovannipizzi/wannier90 that referenced this issue May 24, 2018
These were used to decide hether to enter the plotting routines.
This was causing the `write_u_matrices` to be ignored if there
wasn't also another plotting flag active.
Now the routine is always called, and inside it there were already
the appropriate if statements.
This new design should be more future-proof when more plotting
modes are added. I only put the header printing within an if,
this is in the same file so easier to notice in the future, and
anyway even if forgotten will just not print the header.

This commit fixes wannier-developers#139
manxkim pushed a commit to manxkim/wannier90 that referenced this issue Jan 10, 2021
These were used to decide hether to enter the plotting routines.
This was causing the `write_u_matrices` to be ignored if there
wasn't also another plotting flag active.
Now the routine is always called, and inside it there were already
the appropriate if statements.
This new design should be more future-proof when more plotting
modes are added. I only put the header printing within an if,
this is in the same file so easier to notice in the future, and
anyway even if forgotten will just not print the header.

This commit fixes wannier-developers#139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant