Skip to content

Commit

Permalink
test: correct the inputs in /examples (#4717)
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlxingliang authored Jul 17, 2024
1 parent 336702a commit f2d31f5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions examples/bsse/water/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo "E_H1: $E_H1" >> result.out
echo "E_H2: $E_H2" >> result.out
result_ref=$(cat result.ref | head -1)
difference=$(echo "scale=12; $result - $result_ref" | bc -l)
difference=$(awk -v a=$difference 'BEGIN{if(a<0) print -1*a; else print a}')
abs_difference=$(echo "scale=12; if ($difference < 0) $difference * -1 else $difference" | bc)

if [[ ! -f H2O_scf.output ]] ||
[[ ! -f O_scf.output ]] ||
Expand All @@ -49,7 +49,7 @@ if [[ ! -f H2O_scf.output ]] ||
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf_O.log)" == " Total Time :"* ) ]] ||
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf_H1.log)" == " Total Time :"* ) ]] ||
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf_H2.log)" == " Total Time :"* ) ]] ||
[[ $difference > 0.000001 ]]
[ $(echo "$abs_difference < 0.00001" | bc) -ne 1 ]
then
echo "job is failed!"
exit 1
Expand Down
8 changes: 0 additions & 8 deletions examples/dft_plus_u/NiO/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@ calculation scf
ecutwfc 100
scf_thr 1.0e-6
scf_nmax 200
out_chg 1

#init_chg file
#out_dos 1
#dos_sigma 0.07
#out_band 1

smearing_method gaussian
smearing_sigma 0.05


mixing_type broyden
mixing_beta 0.4
#mixing_gg0 1.5
Expand Down
1 change: 0 additions & 1 deletion examples/relax/pw_al/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mixing_beta 0.7
scf_thr 1e-08
cal_force 1
cal_stress 1
out_stru 1
kspacing 0.12
chg_extrap second-order #atomic; first-order; second-order; dm:coefficients of SIA
pseudo_dir ../../../tests/PP_ORB
Expand Down

0 comments on commit f2d31f5

Please sign in to comment.