/* analyzing ... */
bond_analyze(&moldyn,quality);
- printf("[bond analyze] quality = %f | %f\n",quality[0],quality[1]);
+ printf("[bond analyze] t: %f | quality = %f | %f\n",
+ moldyn.time,quality[0],quality[1]);
moldyn_free_save_file(&moldyn);
--- /dev/null
+#!/bin/bash
+
+if [ ! -d $1 ]; then
+ echo "$1 is not a directory"
+ exit 1
+fi
+
+echo "processing $1 ..."
+
+rm -f $1/bond_analyze.txt
+
+for i in $1/*.save; do
+ bai="`./bond_analyze $i | grep '\[bond' | grep quality`"
+ time=`echo $bai | awk '{ print $4 }'`
+ quality=`echo $bai | awk '{ print $8 }'`
+ echo "$time $quality" >> $1/bond_analyze.txt
+done
+
+echo "done"