forked from deepmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
52 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import numpy | ||
a=numpy.load('dm_eig.npy') | ||
b=numpy.load('e_tot.npy') | ||
c=numpy.load('e_base.npy') | ||
print(numpy.sum(numpy.absolute(a))+numpy.sum(b)+numpy.sum(c)) |
5 changes: 5 additions & 0 deletions
5
tests/deepks/602_NO_deepks_d_H2O_scf_lda2pbe/get_grad_vepsl.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import numpy | ||
a=numpy.load('grad_vepsl.npy') | ||
b=numpy.load('s_tot.npy') | ||
c=numpy.load('s_base.npy') | ||
print(numpy.sum(numpy.absolute(a))+numpy.sum(numpy.absolute(b))+numpy.sum(numpy.absolute(c))) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import numpy | ||
a=numpy.load('grad_vx.npy') | ||
b=numpy.load('f_tot.npy') | ||
c=numpy.load('f_base.npy') | ||
print(numpy.sum(numpy.absolute(a))+numpy.sum(numpy.absolute(b))+numpy.sum(numpy.absolute(c))) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
etotref -466.0342708510963 | ||
etotperatomref -155.3447569504 | ||
totalforceref 3.194930 | ||
totaltimeref 2.7808 | ||
etotref -466.0342709734276241 | ||
etotperatomref -155.3447569911 | ||
totalforceref 3.194893 | ||
totalstressref 1.190505 | ||
totaldes 2.319513 | ||
deepks_e_dm -57.521935318566165 | ||
totaltimeref 5.79 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import numpy | ||
a=numpy.load('dm_eig.npy') | ||
b=numpy.load('e_tot.npy') | ||
c=numpy.load('e_base.npy') | ||
print(numpy.sum(numpy.absolute(a))+numpy.sum(b)+numpy.sum(c)) |
5 changes: 5 additions & 0 deletions
5
tests/deepks/603_NO_deepks_SiO2_bandgap_multik/get_grad_vepsl.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import numpy | ||
a=numpy.load('grad_vepsl.npy') | ||
b=numpy.load('s_tot.npy') | ||
c=numpy.load('s_base.npy') | ||
print(numpy.sum(numpy.absolute(a))+numpy.sum(numpy.absolute(b))+numpy.sum(numpy.absolute(c))) |
5 changes: 5 additions & 0 deletions
5
tests/deepks/603_NO_deepks_SiO2_bandgap_multik/get_grad_vx.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import numpy | ||
a=numpy.load('grad_vx.npy') | ||
b=numpy.load('f_tot.npy') | ||
c=numpy.load('f_base.npy') | ||
print(numpy.sum(numpy.absolute(a))+numpy.sum(numpy.absolute(b))+numpy.sum(numpy.absolute(c))) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
etotref -1958.360872122988 | ||
etotperatomref -326.3934786872 | ||
totaldes 13.256026 | ||
odelta 0.02699443518667366 | ||
oprec 26.18202941954233 | ||
totaltimeref 29.947 | ||
etotref -1958.3608711386159484 | ||
etotperatomref -326.3934785231 | ||
totalforceref 33.057695 | ||
totalstressref 279.260109 | ||
totaldes 13.256025 | ||
deepks_e_dm -224.21161147759534 | ||
odelta 0.026994440153412902 | ||
oprec 26.182031170349624 | ||
totaltimeref 23.36 |