Increase restart check tolerance

Printout is more verbose.
Check up to 7th digit after the decimal.
This commit is contained in:
Ye Luo 2017-06-16 10:20:36 -05:00
parent 7acc72738b
commit 072d3dead9
1 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,16 @@
#!/bin/bash
sed "s/#//" qmc_short.s001.scalar.dat | awk '{print $5,$6,$7,$8}' > s001
sed "s/#//" qmc_short.s002.scalar.dat | awk '{print $5,$6,$7,$8}' > s002
echo "========================================================================================"
echo "First run : qmc_short.s001.scalar.dat"
cat qmc_short.s001.scalar.dat
echo "========================================================================================"
echo "Restart run : qmc_short.s002.scalar.dat"
cat qmc_short.s002.scalar.dat
echo "========================================================================================"
echo "comparing the Kinetic ElecElec IonIon LocalECP up to the 7th digit after the decimal"
sed "/#/d" qmc_short.s001.scalar.dat | awk '{printf("%.7e %.7e %.7e %.7e\n",$5,$6,$7,$8)}' > s001
sed "/#/d" qmc_short.s002.scalar.dat | awk '{printf("%.7e %.7e %.7e %.7e\n",$5,$6,$7,$8)}' > s002
diff s001 s002