You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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 fixeswannier-developers#139
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 fixeswannier-developers#139
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 insideplot_main()
, but plot_main is called in wannier_prog.F90 onlyif (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).
The text was updated successfully, but these errors were encountered: