problems with .conf script

From: Pedro Borkowski (pedro.borkowski_at_gmail.com)
Date: Fri Mar 17 2006 - 13:13:17 CST

Hey all... ive been trying to run a simulation with the following script

run 10000
set TEMP 298
set TARGETTEMP 277

while {$TEMP >= $TARGETTEMP}{

   langevinTEMP $TEMP
   langecinPistonTEmp $TEMP
   run 2000
   set TEMP= `expr $TEMP-1`

}
end

run 10000

but i keep getting this ERROR

TCL: extra characters after close-brace
FATAL ERROR: extra characters after close-brace
      while executing
"while {$TEMP >= $TARGETTEMP"
       (file "dyn_sol3.conf" line 114)

any thoughts"
Thanks

--
-Pedro Borkowski

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:41:45 CST