From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Wed Nov 22 2006 - 09:13:45 CST

On 11/21/06, Myunggi Yi <myunggi_at_gmail.com> wrote:
> Dear VMD users,
>
> I'd like to do something like following
>
> in C programming
>
> for ( i =0 ; ){
> sum += sum + i
> }
>
> ===========>>>
>
> in VMD tcl script for vector summation (my script)
>
> for { set j 0 } { $j < $num1 } { incr j } {
> set sum_vec [vecadd $sum_vec [vecnorm [vecsub [lindex
> $crd2 $j] [lindex $crd1 $j]]]]
> }
>
> As you know this doesn't work.
> How should I fix my script?

please tell us what this script segment is supposed to do.
your c code is not very helpful as it is incomplete and incorrect.

perhaps you should try and have a look at:
http://catb.org/esr/faqs/smart-questions.html
there are a _ton_ of recommendations that make it much
easier for people to help you.

axel.
>
>
>
> --
> Best wishes,
>
> MYUNGGI YI
> ==================================
> KLB 419
> Institute of Molecular Biophysics
> Florida State University
> Tallahassee, FL 32306
>
> Office: (850) 645-1334
> http://www.scs.fsu.edu/~myunggi
>
>

-- 
=======================================================================
Axel Kohlmeyer   akohlmey_at_cmm.chem.upenn.edu   http://www.cmm.upenn.edu
  Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.