-
Notifications
You must be signed in to change notification settings - Fork 145
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
Problem with library mode and excluded bands #186
Comments
Note that this (partially) reverts commit 26eb0a9 (but not completely, e.g. |
As a reference for me, there are quite a number of bugs in the current implementation of library, also some due to the new introduction of parallelism. I'm testing it in a branch in my fork (called At the moment where I stopped now (I will continue in a few days), I get
because in Idea: split |
After some work today, as of now, the branch seems to be working (note: only in serial!). |
Note that probably it would be good to check if the reference output of the test example is correct after the fix of #192 (note that this branch already contains that fix, so if #192 is not approved or changed, we should probably revert that commit). I've also asked the EPW guys to give a look to this branch (thanks if you could! :-) ) |
Ok, Samuel from EPW confirmed that this version works properly (in serial, as expected). |
[Originally reported by @rmargine]
The fix in #170 has still some issues.
The idea in #170: setting
num_bands
before to the correct number of bands (https://github.com/wannier-developers/wannier90/pull/170/files#diff-bda432ec9c162faca707e04d733436e5R138 )and not changing anything in the parameters.F90 (https://github.com/wannier-developers/wannier90/pull/170/files#diff-9e21907dd756ab9320b75aa5752d2022R622 )
Roxana's suggestion/fix, instead, w.r.t. v2.1:
and
Reason from Roxana:
num_exclude_bands=0
inwannier_lib.F90/wannier_setup
beforeCALL param_read()
andAs a result output variable in wannier_setup
num_bands_loc
is also equal tonum_bands_tot
sinceThis causes a crash in
setup_nnkp
with the errornum_bands = num_bands_tot - num_exclude_bands
afterCALL param_read()
inwannier_lib.F90/wannier_setup
fixes the problem becausenum_exclude_bands
was found inparameters.F90/param_read
at lines:The text was updated successfully, but these errors were encountered: