#!/bin/bash
rm /tmp/bounds.dat
for fg in ~/fg_testbase/promedas/potent*.fg; do
    echo $fg
    echo -n "$fg    " >> /tmp/bounds.dat
    ./errorbounds3 $fg 1 >> /tmp/bounds.dat
    echo >> /tmp/bounds.dat
#            cd ~/bound_propagation_1.0
#            domatlab "tol=0.0001; filename='/tmp/grid.fg'; boundpropfg" | tail -1 >> /tmp/bounds.dat
#            cd ~/svn/libDAI/tests/errorbounds
#            if [ $? != 0 ]; then
#                exit
#            fi
done
