Skip to content

Conversation

@xuan112358
Copy link
Collaborator

@xuan112358 xuan112358 commented Sep 5, 2025

  • Add a new parameter deepks_out_base and a new esolver "Esolver_DoubleXC". The parameter deepks_out_freq_elec should be used along with deepks_out_base.
  • Support simultaneous output of numpy files of base and target functionals, all according to output charge density, not after charge mixing!
  • The SCF process remains identical to that using only the target functional, with the exception of additional outputs from the base functional.
  • Support output of total energy, Hamiltonian matrix, atomic force and stress.
  • Update tests of deepks_out_freq_elec

Copy link
Collaborator

@ErjieWu ErjieWu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mohanchen mohanchen added Features Needed The features are indeed needed, and developers should have sophisticated knowledge Machine Learning Issues related to the DeePKS Refactor Refactor ABACUS codes labels Sep 6, 2025
@xuan112358 xuan112358 enabled auto-merge (squash) September 6, 2025 05:34
@xuan112358 xuan112358 merged commit d71661d into deepmodeling:develop Sep 6, 2025
14 checks passed
kluonj pushed a commit to kluonj/abacus-develop that referenced this pull request Sep 28, 2025
…files of base and target functionals (deepmodeling#6483)

* add parameter deepks_out_base, when it is not "none", use a new esolver type "Esolver_DoubleXC"

* Modify Esolver_DoubleXC to calculate ebase,hbase,obase of output charge density (not charge density after charge mixing). Force to use deepks_out_freq_elec along with deepks_out_base

* some output info which helps when debuging

* output files of deepks base; add some annotation for output

* fix bug of force output related to gevdm when deepks_scf = false but deepks_out_labels = 1

* fix the bug of gamma only related to smatrix_k, add some annotations

* update annotation

* add conditions for p_hamit->refresh

* output force and stress base also in DeePKS_Labels_Elec

* revert changes to INPUT in test

* modify test for deepks_out_base

* Revert "some output info which helps when debuging" to delete output information

This reverts commit 73c3d6d.

* remove some output info for debugging in esolver_double_xc

* add some anotation for out_mat_hs used along with deepks_out_base

* add esolver_double_xc in Makefile.Objects

* Add deepks_out_base to input-main.md

Added documentation for deepks_out_base parameter.

* add ifdef for __MLALGO in esolver_double_xc, in case of not compiling with MLALGO

* Update doc for deepks_out_base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Features Needed The features are indeed needed, and developers should have sophisticated knowledge Machine Learning Issues related to the DeePKS Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants