-
Notifications
You must be signed in to change notification settings - Fork 94
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
Ensure MP VASP sets don't use auto_ismear, few other fixes #673
Conversation
…emove dependence on deprecated pkg_resources
…ail in CI when model can't be downloaded
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #673 +/- ##
==========================================
- Coverage 76.26% 76.13% -0.13%
==========================================
Files 87 87
Lines 7132 7140 +8
Branches 1055 1055
==========================================
- Hits 5439 5436 -3
- Misses 1369 1381 +12
+ Partials 324 323 -1
|
Asking to clarify: is this issue in relation to the MP GGA (PBE) workflow, or the MP GGA (PBEsol) workflow used to bootstrap the R2SCAN calculation? If the former, I thought the historical behaviour was to use Gaussian smearing (ISMEAR=0) as a sensible default for relaxations, and tetrahedron only for statics? |
It ends up being both workflows (not just the PBEsol pre-relax) because the value of ISMEAR changes according to bandgap. We don't necessarily want Methfessel-Paxton smearing in case a system is incorrectly predicted to be a metal in the GGA pre-relax.
I recall looking into the atomate workflows and finding that the I've also done some sanity checks against the MP task docs, and it looks like |
Thanks @esoteric-ephemera. Can I just ask about the motivation for disabling |
Hey @utf, for the GGA workflow, it's consistency with atomate. To be consistent with atomate, the meta-GGA workflow would have to start with Methfessel-Paxton smearing (ISMEAR = 2, SIGMA = 0.2) and then switch to tetrahedron (ISMEAR = -5, SIGMA = 0.05) if the gap in the PBEsol step is nonzero I will say I'm in the process of running the "new" (updated pseudopotentials, parameters and hopefully +U's) workflows for both meta-/GGA workflows. So if we'd rather have these exist just as their atomate 1 equivalents, I'm happy to make that change |
Understood! I think this is ok for now. Thanks very much. |
Thanks @esoteric-ephemera, not the first time my memory has been incorrect :) |
FYI, the MACE model downloading issue is fixed in |
@esoteric-ephemera --- with this change, is ISMEAR always equal to 0 and SIGMA always equal to 0.05 in the MP meta-GGA relax and pre-relax steps (unless changed by Custodian)? I'm not opposed -- I just want to make sure I'm understanding this correctly. |
That's right @Andrew-S-Rosen. To clarify and document these changes: For the pre-relaxation , ISMEAR = 0, SIGMA = 0.05, KSPACING = 0.22. The r2SCAN relax continues with 0.22 (metal) <= KSPACING <= 0.44 (wide-gap insulator) and ISMEAR = 0. The final r2SCAN static uses ISMEAR = -5. SIGMA = 0.05 is unchanged through this. This is mostly to avoid situations where Methfessel-Paxton (ISMEAR > 0) smearing is used to relax insulators, or tetrahedron (ISMEAR = -5) method is used to relax metals. The atomate 1 r2SCAN flow had the former problem, the PBE flow has the latter problem |
Thanks!! For clarification: presumably you meant KSPACING instead of SIGMA for the 0.22 to 0.44 comment. |
Whoops yes thanks! Corrected above |
In response to issue #672, all MP VASP input sets now set
auto_ismear = False
by default. This change leads to the following behavior:Few other fixes/improvements:
pkg_resources.resource_filename
as this has been deprecated in favor ofimportlib.resources.files