Skip to content
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

Feature: support automatic binary output of charge density #4991

Merged
merged 18 commits into from
Aug 28, 2024

Conversation

kirk0830
Copy link
Collaborator

@kirk0830 kirk0830 commented Aug 23, 2024

Linked Issue

Partially fix #4905, fix #4964

What's changed?

Now ABACUS supports the automatically backup of charge density in binary format, and can be transferred to Quantum ESPRESSO use directly. Once user wants to benefit from the restart functionality, set init_chg auto.
For users who do not want the output, specify out_chg as -1.

Limitation

there are still several SCF loops if use it (or Gaussian cube) to restart ultrasoft pseudopotential run.

@kirk0830 kirk0830 marked this pull request as draft August 23, 2024 03:50
@kirk0830 kirk0830 marked this pull request as ready for review August 23, 2024 08:57
@kirk0830 kirk0830 changed the title Feature: support binary output of charge density Feature: support automatic binary output of charge density Aug 23, 2024
@kirk0830 kirk0830 requested a review from YuLiu98 August 23, 2024 09:04
@mohanchen mohanchen added the Input&Output Suitable for coders without knowing too many DFT details label Aug 23, 2024
kirk0830 and others added 2 commits August 24, 2024 19:27
…d test"

This reverts commit 66f46bc.

revert the addition of `out_chg -1` line for integrated tests
source/module_esolver/esolver_fp.cpp Outdated Show resolved Hide resolved
source/module_esolver/esolver_fp.cpp Outdated Show resolved Hide resolved
@mohanchen mohanchen merged commit bdc21c2 into deepmodeling:develop Aug 28, 2024
14 checks passed
@kirk0830 kirk0830 deleted the out-chg-bin branch August 28, 2024 05:42
@scott-5
Copy link

scott-5 commented Sep 2, 2024

I set the out_chg -1 in INPUT, and that parameter in OUT.ABACUS/INPUT seems to still be the default 0 3 (i.e. output {suffix}-CHARGE-DENSITY.restart ). @kirk0830

@kirk0830
Copy link
Collaborator Author

kirk0830 commented Sep 6, 2024

I set the out_chg -1 in INPUT, and that parameter in OUT.ABACUS/INPUT seems to still be the default 0 3 (i.e. output {suffix}-CHARGE-DENSITY.restart but SPIN*_CHG.cube ). @kirk0830

@scott-5 Hi, I have fixed this, you can have a try now, if still appears, you can contact with me

@scott-5
Copy link

scott-5 commented Sep 6, 2024

Now set out_chg -1, it will take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Input&Output Suitable for coders without knowing too many DFT details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Binary format of charge density output Request: restart various kinds of ABACUS calculation?
4 participants