Minor quality-of-life and performance enhancements - #4
Open
asuradev99 wants to merge 1 commit into
Open
Conversation
asuradev99
commented
Aug 29, 2026
- Added global_swap MCMC mode for vacancy-free swaps between randomly selected atoms of different chemical species.
- Made global_swap bypass vacancy detection, lattice construction, and nearest-neighbor searches (standard MCMC Metropolis hastings atom swapping algorithm)
- Preserved the existing behavior of vacancy_only, fix_vacancy, all, LSS, and TKS modes.
- Reused a single ASE/MACE calculator instead of reconstructing it when atomic configurations change (unnecessary).
- Cached the current accepted-state energy during MCMC, removing redundant energy evaluations.
- Added max_iter = 0 support for disabling structural relaxation.
- Added buffered XDATCAR writing with configurable trajectory_buffer_size; the default is 100 frames.
- Added optional MACE cuEquivariance acceleration through enable_cueq; testing on my MCMC config gave ~2x speedup.
- Added validation preventing output_name from being empty or containing a path.
- Added configs/deploy_mcmc_example.toml documenting the new MCMC options.
- Added only the cuEquivariance dependency versions to the README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.