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 U matrices not being written #177

Merged

Conversation

giovannipizzi
Copy link
Member

This PR fixes #139 by removing the unneeded checks in wannier_prog for plotting.
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.

I'm also adding a test to check that the _u.mat is actually being generated, and that at least the matrix shape is correct.

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
and the size of the U matrices is correct.
@codecov
Copy link

codecov bot commented May 24, 2018

Codecov Report

Merging #177 into develop will increase coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #177      +/-   ##
===========================================
+ Coverage    57.57%   57.66%   +0.08%     
===========================================
  Files           27       27              
  Lines        15624    15624              
===========================================
+ Hits          8995     9009      +14     
+ Misses        6629     6615      -14
Impacted Files Coverage Δ
src/wannier_prog.F90 81.81% <100%> (-0.15%) ⬇️
src/plot.F90 19.67% <100%> (+1.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da4b9bd...2e6e850. Read the comment docs.

@mostofi
Copy link
Member

mostofi commented May 24, 2018

Looks good.

@mostofi mostofi closed this May 24, 2018
@giovannipizzi
Copy link
Member Author

Hi @mostofi, you closed instead of merging. I'll reopen it - you need to approve it and then merge it.

@giovannipizzi giovannipizzi reopened this May 24, 2018
Copy link
Member

@mostofi mostofi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@mostofi mostofi merged commit 6e3cd19 into wannier-developers:develop May 24, 2018
@giovannipizzi giovannipizzi deleted the fix_139_plotting_u_matrices branch June 23, 2018 14:28
manxkim pushed a commit to manxkim/wannier90 that referenced this pull request Jan 10, 2021
…plotting_u_matrices

Fix U matrices not being written
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

write_u_matrices not written
2 participants