forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 145
Add deepks_out_freq_elec for outputting deepks labels during electronic steps #6325
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
Merged
xuan112358
merged 13 commits into
deepmodeling:develop
from
xuan112358:deepks_append_npy
Jun 22, 2025
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1b2f762
add parameter "deepks_out_freq_elec"
xuan112358 3926e6f
set global_deepks_label_elec_dir, make the directory named "DeePKS_La…
xuan112358 a2ae701
output files during electronic steps, add function get_filename to si…
xuan112358 7c201cf
modify get_filename
xuan112358 41cfc33
change the output process of deepks_dm_eig.npy, making it consistent …
xuan112358 778b405
support output deepks labels during electronic steps
xuan112358 a2fee71
add test for deepks_out_freq_elec > 0
xuan112358 db386fd
optimize LCAO_deepks_interface
xuan112358 9f8f941
modify test script for deepks
xuan112358 fafa246
add doc for deepks_out_freq_elec
xuan112358 2a31da8
Merge branch 'develop' into deepks_append_npy
xuan112358 4da3c34
Merge branch 'develop' into deepks_append_npy
xuan112358 c96cd44
Update input-main.md
xuan112358 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
623 changes: 353 additions & 270 deletions
623
source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| INPUT_PARAMETERS | ||
| #Parameters (1.General) | ||
| suffix autotest | ||
| calculation scf | ||
|
|
||
| nbands 6 | ||
| symmetry 0 | ||
| pseudo_dir ../../PP_ORB | ||
| orbital_dir ../../PP_ORB | ||
|
|
||
| #Parameters (2.Iteration) | ||
| ecutwfc 50 | ||
| scf_thr 5e-3 #relatively large to avoid many steps | ||
| scf_nmax 50 | ||
|
|
||
| #Parameters (3.Basis) | ||
| basis_type lcao | ||
| gamma_only 1 | ||
|
|
||
| #Parameters (4.Smearing) | ||
| smearing_method gaussian | ||
| smearing_sigma 0.02 | ||
|
|
||
| #Parameters (5.Mixing) | ||
| mixing_type broyden | ||
| mixing_beta 0.8 | ||
| mixing_gg0 0 | ||
|
|
||
| #Parameters (6.File) | ||
| deepks_out_labels 1 | ||
|
|
||
| deepks_bandgap 1 | ||
| deepks_v_delta 1 | ||
| cal_force 1 | ||
| cal_stress 1 | ||
|
|
||
| deepks_out_freq_elec 1 | ||
|
|
||
| dft_functional lda |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| K_POINTS | ||
| 0 | ||
| Gamma | ||
| 1 1 1 0 0 0 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| test output for deepks_out_freq_elec > 0, for gamma_only H2O molecule |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| ATOMIC_SPECIES | ||
| H 1.008 H_ONCV_PBE2PZ-1.0.upf | ||
| O 15.9994 O_ONCV_PBE2PZ-1.0.upf | ||
|
|
||
| NUMERICAL_ORBITAL | ||
| H_gga_6au_60Ry_2s1p.orb | ||
| O_gga_6au_60Ry_2s2p1d.orb | ||
|
|
||
| NUMERICAL_DESCRIPTOR | ||
| ../Model_ProjOrb/2au_20Ry_jle.orb | ||
|
|
||
| LATTICE_CONSTANT | ||
| 1 | ||
|
|
||
| LATTICE_VECTORS | ||
| 15 0 0 | ||
| 0 15 0 | ||
| 0 0 15 | ||
|
|
||
| ATOMIC_POSITIONS | ||
| Cartesian | ||
|
|
||
| H | ||
| 0 | ||
| 2 | ||
| -12.081531451316582 1.463368531712373 10.304287878967891 1 1 1 | ||
| -12.056180479123837 4.25408045699522 10.010554611214044 1 1 1 | ||
| O | ||
| 0 | ||
| 1 | ||
| -13.1930046246741 2.91132430713516 10.440289103003526 1 1 1 | ||
|
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| etotref -463.3717558791495890 | ||
| etotperatomref -154.4572519597 | ||
| totalforceref 3.661556 | ||
| totalstressref 9.690490 | ||
| deepks_e_label 17.02859183994638 | ||
| deepks_edelta 0.0 | ||
| deepks_o_label 0.3103148500892656 | ||
| deepks_odelta 0.0 | ||
| deepks_oprec -0.42236872134755643 | ||
| deepks_h_label 49.03922791708764 | ||
| deepks_vdelta 0.0 | ||
| deepks_vdp 176.26236130240005 | ||
| deepks_f_label 0.07120588316979731 | ||
| deepks_fdelta 0.0 | ||
| deepks_fpre 19.53717375096851 | ||
| deepks_s_label 0.08886477565384877 | ||
| deepks_sdelta 0.0 | ||
| deepks_spre 19.22629462223564 | ||
| deepks_e_label_elec 51.047596216236645 | ||
| deepks_edelta_elec 0 | ||
| deepks_o_label_elec .86018933752816427 | ||
| deepks_odelta_elec 0 | ||
| deepks_oprec_elec -1.23599151361440239 | ||
| deepks_h_label_elec 147.028760179109205 | ||
| deepks_vdelta_elec 0 | ||
| deepks_vdp_elec 529.07335498441735 | ||
| totaltimeref 1.03 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| INPUT_PARAMETERS | ||
| #Parameters (1.General) | ||
| suffix autotest | ||
| calculation scf | ||
|
|
||
| nbands 6 | ||
| symmetry 0 | ||
| pseudo_dir ../../PP_ORB | ||
| orbital_dir ../../PP_ORB | ||
|
|
||
| #Parameters (2.Iteration) | ||
| ecutwfc 50 | ||
| scf_thr 5e-3 #relatively large to avoid many steps | ||
| scf_nmax 50 | ||
|
|
||
| #Parameters (3.Basis) | ||
| basis_type lcao | ||
| gamma_only 0 | ||
|
|
||
| #Parameters (4.Smearing) | ||
| smearing_method gaussian | ||
| smearing_sigma 0.02 | ||
|
|
||
| #Parameters (5.Mixing) | ||
| mixing_type broyden | ||
| mixing_beta 0.8 | ||
| mixing_gg0 0 | ||
|
|
||
| #Parameters (6.File) | ||
| deepks_out_labels 1 | ||
|
|
||
| deepks_bandgap 1 | ||
| deepks_v_delta 1 | ||
| cal_force 1 | ||
| cal_stress 1 | ||
|
|
||
| deepks_out_freq_elec 1 | ||
|
|
||
| dft_functional lda |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.