-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve function
pert_scaled
(#1563)
My suggestion: - Separate VASP and ABACUS into separated functions (and may be separated files). This will helpful to someone who want to implement a new DFT engine and also convenient for maintain. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced the `pert_scaled` function to support different initialization styles ("VASP" or "ABACUS"). - **Refactor** - Improved loop logic and file handling for better performance and reliability in perturbation processes. - Streamlined the `make_vasp_relax` and `make_scale` functions for improved readability and clarity. - Simplified the construction of perturbation commands in the `pert_scaled` function. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
afc6e34
commit e285ab3
Showing
2 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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