From: Molybdos Kirkimpolakis (supercomputer.simulation_at_gmail.com)
Date: Wed Nov 30 2011 - 14:54:45 CST

Dear VMD Masters,
I'm trying to read the SMD information from the log file; using the tcl
script provided by namd tutorial; however I am geting the follwing error

unmatched open brace in list

Can someone tell me what is wrong?

Thanks so much for your help.

Here is the script.

###################################################################
### Open the log file for reading and the output .dat file for writing
set file [open SMD.log r]
set output [open analysis/force.dat w]

### Gather input from user.

### Loop over all lines of the log file
set file [open SMD.log r]
while { [gets $file line] != -1 } {
### Determine if a line contains SMD output. If so, write the
### timestep followed by f(dot)n to the output file
    if {[lindex $line 0] == "SMD"} {
       puts $output "[lindex $line 1] [lindex $line 5] [lindex $line 6]
[lindex $line 7]"
       }
 }

### Close the log file and the output .dat file
close $file
close $output
#######################################################################

-- 
cheers
Molybdos Kirkimpolakis
Πανεπιστήμιο Πατρών <http://www.biology.upatras.gr>
ΤΜΗΜΑ ΒΙΟΛΟΓΙΑΣ