Skip to content

Commit 4a2666d

Browse files
committed
test(integrate): ienvelope calculation with lcao
1 parent 330bc26 commit 4a2666d

File tree

11 files changed

+122
-1
lines changed

11 files changed

+122
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
INPUT_PARAMETERS
2+
#Parameters (System)
3+
suffix autotest
4+
ntype 1
5+
nbands 4
6+
stru_file STRU
7+
kpoint_file KPT
8+
pseudo_dir ../tools/PP_ORB/
9+
orbital_dir ../tools/PP_ORB/
10+
latname sc
11+
#Parameters (PW)
12+
ecutwfc 25.0 # Rydberg
13+
#Parameters (electronic)
14+
basis_type lcao
15+
scf_thr 1e-10
16+
17+
calculation ienvelope
18+
out_wfc_lcao 1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
K_POINTS
2+
0
3+
Gamma
4+
2 1 1 0 0 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#This is the atom file containing all the information
2+
#about the lattice structure.
3+
4+
ATOMIC_SPECIES
5+
H 1.0008 H_ONCV_PBE-1.0.upf
6+
7+
NUMERICAL_ORBITAL
8+
H_gga_6au_60Ry_2s1p.orb
9+
10+
LATTICE_CONSTANT
11+
10.0 #Lattice constant
12+
13+
ATOMIC_POSITIONS
14+
Cartesian #Cartesian(Unit is LATTICE_CONSTANT)
15+
H #Name of element
16+
0.0 #Magnetic for this element.
17+
2 #Number of atoms
18+
0.00 0.00 -0.0661400 0 0 0 #x,y,z, move_x, move_y, move_z
19+
0.00 0.00 0.0661400 0 0 0 #x,y,z, move_x, move_y, move_z
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ienvelope calculation for lcao base
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
totaltimeref 0.47467
2+
nelec 1.00032
3+
nelec 1.00033
4+
nelec 1.00252
5+
nelec 1.00248
6+
nelec 1.00155
7+
nelec 1.00153
8+
nelec 1.00545
9+
nelec 1.00546

tests/integrate/281_NO_KP_HSE/jd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HSE calculation on water, multiple k-points

tests/integrate/381_NO_GO_HSE/jd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HSE calculation on water, gamma-only

tests/integrate/CASES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
211_NO_S2_elec_add
107107
211_NO_elec_minus
108108
211_NO_S2_elec_minus
109+
212_NO_wfc_ienvelope
109110
220_NO_KP_MD_FIRE
110111
220_NO_KP_MD_NVE
111112
220_NO_KP_MD_NVT

tests/integrate/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ else()
1212
COMMAND ${BASH} Autotest.sh -a ${ABACUS_BIN_PATH} -n 4
1313
WORKING_DIRECTORY ${ABACUS_TEST_DIR}/integrate
1414
)
15+
add_executable(sum_ENV_H2 ${ABACUS_TEST_DIR}/integrate/tools/sum_ENV_H2.cpp)
16+
install(TARGETS sum_ENV_H2 DESTINATION ${ABACUS_TEST_DIR}/integrate/tools/)
1517
endif()

tests/integrate/tools/catch_properties.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test -e $1 && rm $1
4646
#--------------------------------------------
4747
# if NOT non-self-consistent calculations
4848
#--------------------------------------------
49-
if [ $calculation != "nscf" ]; then
49+
if [ $calculation != "nscf" ] && [ $calculation != "ienvelope" ]; then
5050
etot=`grep ETOT_ $running_path | awk '{print $2}'`
5151
etotperatom=`awk 'BEGIN {x='$etot';y='$natom';printf "%.10f\n",x/y}'`
5252
echo "etotref $etot" >>$1
@@ -126,3 +126,13 @@ if ! test -z "$deepks_bandgap" && [ $deepks_bandgap -eq 1 ]; then
126126
echo "oprec $oprec" >> $1
127127
fi
128128

129+
if [ $calculation == "ienvelope" ]; then
130+
../tools/sum_ENV_H2 OUT.autotest/BAND1_k_1_s_1_ENV >> $1
131+
../tools/sum_ENV_H2 OUT.autotest/BAND1_k_2_s_1_ENV >> $1
132+
../tools/sum_ENV_H2 OUT.autotest/BAND2_k_1_s_1_ENV >> $1
133+
../tools/sum_ENV_H2 OUT.autotest/BAND2_k_2_s_1_ENV >> $1
134+
../tools/sum_ENV_H2 OUT.autotest/BAND3_k_1_s_1_ENV >> $1
135+
../tools/sum_ENV_H2 OUT.autotest/BAND3_k_2_s_1_ENV >> $1
136+
../tools/sum_ENV_H2 OUT.autotest/BAND4_k_1_s_1_ENV >> $1
137+
../tools/sum_ENV_H2 OUT.autotest/BAND4_k_2_s_1_ENV >> $1
138+
fi

0 commit comments

Comments
 (0)