Skip to content

Commit 8807912

Browse files
committed
update LR cases: cover spin2 and dav_subspace
1 parent cda658e commit 8807912

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

tests/integrate/291_NO_KP_LR/INPUT

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ orbital_dir ../../../tests/PP_ORB
66
calculation scf
77
nbands 6
88
symmetry -1
9+
nspin 2
910

1011
#Parameters (2.Iteration)
1112
ecutwfc 20
@@ -26,12 +27,12 @@ mixing_beta 0.4
2627

2728
lr_nstates 2 # for test/debug, you can try a smaller one like 2
2829
xc_kernel lda
29-
lr_solver dav
30+
lr_solver dav_subspace
3031
lr_thr 1e-2
3132
pw_diag_ndim 4
3233

3334
esolver_type ks-lr
3435

3536
nvirt 2
36-
abs_wavelen_range 100 175
37+
abs_wavelen_range 200 600
3738

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
totexcitationenergyref 0.391462
2-
totaltimeref
1+
totexcitationenergyref 0.784963

tests/integrate/391_NO_GO_LR/INPUT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ orbital_dir ../../../tests/PP_ORB
66
calculation scf
77
nbands 6
88
symmetry -1
9+
nspin 2
910

1011
#Parameters (2.Iteration)
1112
ecutwfc 10
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
totexcitationenergyref 1.313946
2-
totaltimeref
1+
totexcitationenergyref 2.641295

tests/integrate/392_NO_GO_LR_HF/INPUT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ orbital_dir ../../../tests/PP_ORB
66
calculation scf
77
nbands 6
88
symmetry -1
9+
nspin 2
910

1011
#Parameters (2.Iteration)
1112
ecutwfc 10
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
totexcitationenergyref 1.587504
1+
totexcitationenergyref 3.067979

tests/integrate/tools/catch_properties.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ if [ $is_lr == 1 ]; then
539539
lr_path=OUT.autotest/running_lr.log
540540
lrns=$(get_input_key_value "lr_nstates" "INPUT")
541541
lrns1=`echo "$lrns + 1" |bc`
542-
grep -A$lrns1 "Excitation Energy" $lr_path | tail -$lrns | awk '{print $2}' > lr_eig.txt
542+
grep -A$lrns1 "Excitation Energy" $lr_path | awk 'NR > 2 && $2 ~ /^[0-9]+\.[0-9]+$/ {print $2}' > lr_eig.txt
543543
lreig_tot=`sum_file lr_eig.txt`
544544
echo "totexcitationenergyref $lreig_tot" >>$1
545545
fi

0 commit comments

Comments
 (0)