Re: problems with .conf script

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

hey all

Thanks for all your support
This is what worked for me

run 10000
set TEMP 298

while {$TEMP>=277} {
        langevinTEMP $TEMP
        langevinPistonTemp $TEMP
        run 2000
        set TEMP [expr $TEMP-1]
}

run 10000

I guess it was the space between the braces }{ vs } {

Thanks again
-Pedro

On 3/17/06, Peter Freddolino <petefred_at_ks.uiuc.edu> wrote:
> Hi Pedro,
> a couple things (some of which might not apply if you didn't copy this
> straight from your script):
>
> -langecinPistonTEmp should be langevinPistonTemp (note the c->v change)
> -set TEMP= `expr $TEMP-1` should be set TEMP [expr $TEMP - 1] (There's no = sign in TCL assigment, and this avoids the usage of backquotes, which don't do what you seem to think here)
> -Is there a reason for the "end" after that block?
>
> Peter
>
> Pedro Borkowski wrote:
>
> >I have tried that but it didn't work... anyone have any ideas?
> >
> >thanks
> >-Pedro Borkowski
> >
> >On 3/17/06, pedro.borkowski_at_utoronto.ca <pedro.borkowski_at_utoronto.ca> wrote:
> >
> >
> >>I think that's worth trying i'll let you konw how it works
> >>-Pedro
> >>
> >>Quoting Brian Bennion <brian_at_youkai.llnl.gov>:
> >>
> >>
> >>
> >>>This may be niave but you might need a space between the two curly braces
> >>>at the end of the while line.
> >>>
> >>>Brian
> >>>
> >>>On Fri, 17 Mar 2006, Pedro Borkowski wrote:
> >>>
> >>>
> >>>
> >>>>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
> >>>>
> >>>>
> >>>>
> >>>************************************************
> >>> Brian Bennion, Ph.D.
> >>> Biosciences Directorate
> >>> Lawrence Livermore National Laboratory
> >>> P.O. Box 808, L-448 bennion1_at_llnl.gov
> >>> 7000 East Avenue phone: (925) 422-5722
> >>> Livermore, CA 94550 fax: (925) 424-6605
> >>>************************************************
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >--
> >-Pedro Borkowski
> >
> >
>

--
-Pedro Borkowski

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:43:24 CST