]> hackdaworld.org Git - physik/posic.git/commitdiff
added count column to bond_analyze code
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Sat, 20 Sep 2008 20:44:11 +0000 (22:44 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Sat, 20 Sep 2008 20:44:11 +0000 (22:44 +0200)
bond_analyze.c
bond_analyze_script

index f9337fd4231e084c789aacc023039005977eb302..39928941fbf3aae13c2588c35e0a1a902edb6d8c 100644 (file)
@@ -55,8 +55,8 @@ int main(int argc,char **argv) {
        /* analyzing ... */
        bond_analyze(&moldyn,quality);
 
-       printf("[bond analyze] t: %f | quality = %f | %f\n",
-               moldyn.time,quality[0],quality[1]);
+       printf("[bond analyze] t: %f | quality = %f | %f | %d\n",
+               moldyn.time,quality[0],quality[1],moldyn.count);
 
        moldyn_free_save_file(&moldyn);
 
index 6b5736f6b122c5e4a465c7c28b8502611bb95266..e06c7ec3e4c5b150f0374c6dc53e8d512fd6c7ff 100755 (executable)
@@ -13,7 +13,8 @@ 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
+       count=`echo $bai | awk '{ print $12 }'`
+       echo "$time $quality $count" >> $1/bond_analyze.txt
 done
 
 echo "done"