-
Notifications
You must be signed in to change notification settings - Fork 139
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
Modification needed for SAWF in Wannier library mode. #342
base: develop
Are you sure you want to change the base?
Conversation
The .dmn file needs to be read.
Codecov Report
@@ Coverage Diff @@
## develop #342 +/- ##
==========================================
Coverage ? 66.40%
==========================================
Files ? 29
Lines ? 17992
Branches ? 0
==========================================
Hits ? 11948
Misses ? 6044
Partials ? 0
Continue to review full report at Codecov.
|
I see no reason why SLWF and SLWF+C cannot work for all WF. It seems to work and give reasonable results.
Hello, Samuel: Regarding SLWF, please see the comment at #287 (comment) . Sincerely, Hyungjun Lee |
Hello Hyungjun, For SLWF, it seems to work to constrain all centers (I tested it). The reason that they never constrained all centers is due to their DEFT-based application. Therefore it think it would not hurt to allow it (potentially with a Warning message). For SAWF, the fix is needed for any code using w90 in library mode. Best, |
@@ -827,7 +827,7 @@ subroutine param_read() | |||
if (slwf_num .gt. num_wann .or. slwf_num .lt. 1) then | |||
call io_error('Error: slwf_num must be an integer between 1 and num_wann') | |||
end if | |||
if (slwf_num .lt. num_wann) selective_loc = .true. | |||
if (slwf_num .lt. num_wann + 1) selective_loc = .true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sponce24 @giovannipizzi and @hjunlee, apologies for the very late reply. As I mentioned in #287, you should not be able to arbitrarly fix "all" centers of the Wannier functions and expect this to work for an isolate manifold with number of bands = number of WFs, since the vectorial sum of the centers is a gauge invariant quantity (modulo a lattice vector). Whether this is possible for entangled bands, I am not really sure...
Samuel - apologies for the delay in looking at this PR. Could you let us know if you would still like this merged (and maybe answer Giovanni's question). If so we will probably merge when we have a coding meeting on the 4th August. |
The .dmn file needs to be read.