#! /bin/csh -f

# Will generate a series of MD simulations, running one after the other
# 110604 by tripp

set VAR=1     # First run in the group
set FIN=25     # Las run in the group

while("$VAR" <= "$FIN")

# Run NAMD with the config file "my_config.namd", will direct output to different log files
echo " Running namd2 with my_config.namd > my_log-${VAR}.out"
/home/NAMD/charmrun /home/NAMD/namd2 my_config.namd > my_log-${VAR}.out

@ VAR=$VAR + 1

end

echo ''
echo 'End of group simulation!'
echo ''

exit

