Skip to content

Commit a2a7f0f

Browse files
committed
fix catch_properties.sh
1 parent cc3ca5f commit a2a7f0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integrate/tools/catch_properties.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,11 @@ if ! test -z "$has_lowf" && [ $has_lowf == 1 ]; then
447447
wfc_ref=wfs1_nao.txt.ref
448448
else # multi-k point case
449449
if ! test -z "$out_app_flag" && [ $out_app_flag == 0 ]; then
450-
wfc_name=WFC/wfs1k1g3_nao
450+
wfc_name=wfs1k1g3_nao
451+
input_file=WFC/wfs1k1g3_nao
451452
else
452453
wfc_name=wfs1k2_nao
454+
input_file=wfs1k2_nao
453455
fi
454456
awk 'BEGIN {flag=999}
455457
{
@@ -462,7 +464,7 @@ if ! test -z "$has_lowf" && [ $has_lowf == 1 ]; then
462464
printf "\n"
463465
}
464466
else {print $0}
465-
}' OUT.autotest/"$wfc_name".txt > OUT.autotest/"$wfc_name"_mod.txt
467+
}' OUT.autotest/"$input_file".txt > OUT.autotest/"$wfc_name"_mod.txt
466468
wfc_cal=OUT.autotest/"$wfc_name"_mod.txt
467469
wfc_ref="$wfc_name"_mod.txt.ref
468470
fi

0 commit comments

Comments
 (0)