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

Update get_oper.F90 #126

Merged
merged 1 commit into from
Dec 10, 2017
Merged

Update get_oper.F90 #126

merged 1 commit into from
Dec 10, 2017

Conversation

hjunlee
Copy link
Contributor

@hjunlee hjunlee commented Mar 31, 2017

There seems to be a bug in the subroutine get_gauge_overlap_matrix in get_oper.F90.
Since the first dimension of eigval is num_bands,
in the argument of call utility_zgemmm
eigval(:,ik_a) should be eigval(wm_a:wm_a+ns_a-1,ik_a).

H. Lee

There seems to be a bug in the subroutine get_gauge_overlap_matrix in get_oper.F90.
Since the first dimension of eigval is num_bands,
in the argument of call utility_zgemmm
eigval(:,ik_a) should be eigval(wm_a:wm_a+ns_a-1,ik_a).

H. Lee
@jryates
Copy link
Member

jryates commented Mar 31, 2017

Do you have a small test case that highlights this problem? It would be great to add this to the test suite so we know the bug stays fixed.

@hjunlee
Copy link
Contributor Author

hjunlee commented Apr 2, 2017

I don't have small test case, but it leads to error whenever get_BB_R is called, for example, plot_morb is true, and the lower bound of the outer energy windows rather than 1 is set.

ponweist referenced this pull request in ponweist/Wannier90-PRACE Apr 2, 2017
@ponweist
Copy link

ponweist commented Apr 2, 2017

This seems very plausible to me. I think I introduced the bug in ponweist/Wannier90-PRACE@804c8f9 - thanks for fixing!

@ponweist
Copy link

ponweist commented Jun 8, 2017

I'd recommend to accept this bug fix and merge it to the 108_POSTW90OPT_FIX branch.

@jryates jryates merged commit 50a0ebc into wannier-developers:108_POSTW90OPT_FIX Dec 10, 2017
@hjunlee hjunlee deleted the patch-1 branch November 16, 2018 12:42
manxkim pushed a commit to manxkim/wannier90 that referenced this pull request Jan 10, 2021
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.

3 participants