Repository navigation
Conversation
…id DFT, no symmetry, PreconLBFGS optimiser
…and edge determination in GPAW (to boost generalisability, handle metallic / high-smearing systems etc)
Port develop's `_update_incar_settings` -> `_handle_EDIFF_and_update_incar_settings` rename to `doped/io/vasp/inputs.py` (keeping the `doped/vasp.py` shim), and map the consolidated `tests/.pytest_split_durations` to the IO test layout (`test_analysis.py` -> `test_parsing.py`).
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Thanks @sblisesivdin! I've pushed a series of changes to the branch, building on this PR. Here's a summary of what has changed and why (with the help of Claude): Band edges
GPAW defaultsThe defaults moved from hard-coded values in
Script generation and input checks
GPAW versionGPAW newer than 26.7.0 is now required, because relaxations with hybrid functionals (now the default) fail at the second ionic step with GPAW 26.7.0; this is fixed on the GPAW master branch. Until the next GPAW release, the docs say to install GPAW master from GitLab first, and the |
|
Thanks Sean, these are really very good improvements! The band-filling approach makes a lot of sense, especially for narrow-gap systems with smearing. Next week, I'll pick up the next GPAW task from your updated branch. |
This PR replaces Fermi-level-based GPAW band-edge selection with occupation-based determination.
Raw occupations identify filled and empty states across spin channels and k-points. Partially occupied states, changes in occupied-band count across k-points, or overlapping occupied and empty levels give a zero gap, avoiding spurious finite gaps for metals on discrete meshes.
Calculations without both occupied and unoccupied states raise an informative error instead of substituting the Fermi level for an uncomputed edge. Charged supercells continue to omit host band edges.
Validation with GPAW 26.7:
The documentation describes the occupation threshold and smearing limitations. This addresses the band-edge prerequisite in #156; PAW projection mapping and shallow-defect analysis remain separate work.
Based on the latest IO_refactor, including the merged #161 changes.