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

edited the hamiltonian_write_rmn to correspond to hamiltonian_write_t… #168

Merged
merged 5 commits into from
May 24, 2018

Conversation

stiegerc
Copy link
Contributor

…b and use the proper formula for diagonal elements. For low nkpts or 2D structures, i.e. only 1 kpt in one direction, the old version produced false diagonal elements in the homecell, which should be equal to wannier centers in the wout file. Some testing revealed that the old version converges towards the new one with higher nkpts (or more vacuum) but for a 2D structure it'd be a complete waste adding more points just to fix the operator. I also added the number of R vectors on the 3rd line as it is in the hr hamiltonian file. Also removed the delta in hamiltonian_write_tb as the distinction of i==j or not is already taken care of by the if clause.

…b and use the proper formula for diagonal elements. For low nkpts or 2D structures, i.e. only 1 kpt in one direction, the old version produced false diagonal elements in the homecell, which should be equal to wannier centers in the wout file. Some testing revealed that the old version converges towards the new one with higher nkpts (or more vacuum) but for a 2D structure it'd be a complete waste adding more points just to fix the operator. I also added the number of R vectors on the 3rd line as it is in the hr hamiltonian file. Also removed the delta in hamiltonian_write_tb as the distinction of i==j or not is already taken care of by the if clause.
@codecov
Copy link

codecov bot commented Feb 20, 2018

Codecov Report

Merging #168 into develop will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #168   +/-   ##
========================================
  Coverage    57.66%   57.66%           
========================================
  Files           27       27           
  Lines        15624    15624           
========================================
  Hits          9009     9009           
  Misses        6615     6615
Impacted Files Coverage Δ
src/hamiltonian.F90 45.61% <0%> (ø) ⬆️

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 334ed2b...4fc45c5. Read the comment docs.

@giovannipizzi
Copy link
Member

Looks reasonable. I'm ok with the change of format (don't think many people are using it). For the change in formula, maybe @jryates and @ivosouza0 can have a more expert opinion on this.

@giovannipizzi
Copy link
Member

@jryates do you thing there is a setting file (and is it in the repo or in the codecov page?) to set some threshold for codecov so it does not show as failed for small changes? Also, I'm not sure how to interpret this 0%. (I know this does not prevent merging but still if it's below a threshold I think it's more intuitive also for us to see a green check)

@ivosouza0 ivosouza0 merged commit e0315e9 into wannier-developers:develop May 24, 2018
manxkim pushed a commit to manxkim/wannier90 that referenced this pull request Jan 10, 2021
edited the hamiltonian_write_rmn to correspond to hamiltonian_write_t…
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.

4 participants