Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/01_PW/035_PW_15_SO/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ relax_nmax 1
force_thr_ev 0.001
out_level ie
relax_method cg
out_chg 1
# out_chg 1
#out_band 1
#init_chg file

Expand Down
2 changes: 1 addition & 1 deletion tests/01_PW/098_PW_15_SO_avg/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ relax_nmax 1
force_thr_ev 0.001
out_level ie
relax_method cg
out_chg 1
# out_chg 1
#out_band 1
#init_chg file

Expand Down
2 changes: 1 addition & 1 deletion tests/05_rtTDDFT/11_NO_O3_TDDFT/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ scf_nmax 30

ks_solver genelpa
basis_type lcao
out_chg 1
# out_chg 1
gamma_only 0
md_nstep 2
estep_per_md 1
Expand Down
1 change: 0 additions & 1 deletion tests/07_OFDFT/04_OF_KE_CPN5/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ calculation scf
esolver_type ofdft
ntype 1
symmetry 1
out_chg 1
pseudo_dir ../../PP_ORB/
pseudo_rcut 16

Expand Down
25 changes: 25 additions & 0 deletions tests/07_OFDFT/33_OF_out_chg/INPUT
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
INPUT_PARAMETERS
#Parameters (1.General)
suffix autotest
calculation scf
esolver_type ofdft

symmetry 1
pseudo_dir ../../PP_ORB/
pseudo_rcut 16
nspin 1

#Parameters (2.Iteration)
ecutwfc 20
scf_nmax 50

#OFDFT
of_kinetic wt
of_method tn
of_conv energy
of_tole 2e-6

#Parameters (3.Basis)
basis_type pw

out_chg 1
4 changes: 4 additions & 0 deletions tests/07_OFDFT/33_OF_out_chg/KPT
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
K_POINTS
0
Gamma
1 1 1 0 0 0
1 change: 1 addition & 0 deletions tests/07_OFDFT/33_OF_out_chg/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Test out_chg in OFDFT, symmetry=on
18 changes: 18 additions & 0 deletions tests/07_OFDFT/33_OF_out_chg/STRU
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ATOMIC_SPECIES
Al 26.98 al.lda.lps blps

LATTICE_CONSTANT
7.50241114482312 // add lattice constant

LATTICE_VECTORS
0.000000000000 0.500000000000 0.500000000000
0.500000000000 0.000000000000 0.500000000000
0.500000000000 0.500000000000 0.000000000000

ATOMIC_POSITIONS
Direct

Al
0
1
0.000000000000 0.000000000000 0.000000000000 1 1 1
682 changes: 682 additions & 0 deletions tests/07_OFDFT/33_OF_out_chg/chg.cube.ref

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions tests/07_OFDFT/33_OF_out_chg/result.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
etotref -57.93385514279165
etotperatomref -57.9338551428
pointgroupref O_h
spacegroupref O_h
chg.cube_pass 0
nksibzref 1
totaltimeref 0.34
1 change: 1 addition & 0 deletions tests/07_OFDFT/CASES_CPU.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
30_TDOFDFT_Al
31_TDOFDFT_Al_CD
32_TDOFDFT_Al_mCD
33_OF_out_chg
2 changes: 1 addition & 1 deletion tests/15_rtTDDFT_GPU/11_NO_O3_TDDFT_GPU/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scf_nmax 30
device gpu
ks_solver cusolver
basis_type lcao
out_chg 1
# out_chg 1
gamma_only 0
md_nstep 2

Expand Down
11 changes: 9 additions & 2 deletions tests/integrate/tools/catch_properties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,21 @@ if ! test -z "$has_mat_dh" && [ $has_mat_dh == 1 ]; then
echo "ComparerdHRz_pass $?" >>$1
fi

#---------------------------------------
# Charge density
#---------------------------------------
#echo $out_chg
if ! test -z "$out_chg" && [ $out_chg == 1 ]; then
python3 $COMPARE_SCRIPT chg.cube.ref OUT.autotest/chg.cube 8
echo "chg.cube_pass $?" >>$1
fi

#---------------------------------------
# SCAN exchange-correlation information
#echo $has_scan
#---------------------------------------
if ! test -z "$has_scan" && [ $has_scan == "scan" ] && \
! test -z "$out_chg" && [ $out_chg == 1 ]; then
python3 $COMPARE_SCRIPT chg.cube.ref OUT.autotest/chg.cube 8
echo "chg.cube_pass $?" >>$1
python3 $COMPARE_SCRIPT tau.cube.ref OUT.autotest/tau.cube 8
echo "tau.cube_pass $?" >>$1
fi
Expand Down
Loading