[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ESPResSo-devel] Doubt in an analysis TCL script provided with Espre
Re: [ESPResSo-devel] Doubt in an analysis TCL script provided with Espresso
Mon, 21 Jan 2008 09:30:36 -0500
If you need more information on these modes:
- the 'modes.c' file has a 'modes2d' routine which computes the FFTs
of the height of the bilayer for each grid cell.
- the 'statistics.c' file parses these results in the 'parse_modes2d'
routine, converting the fourier modes to TCL.
2008/1/21 prateeksha s <address@hidden>:
> I am developing using Espresso code, and I'm converting the fluctuations.tcl
> script, found in packages/mbtools/analysis/, to C. I encountered this piece
> of TCL which I do not understand, hence, I'm unable to translate it to C.
> The difficult-to-understand code is in italics :
> set re [expr [lindex [lindex $rawmodes 1 $i $j] 0]*$norm]
> set im [expr [lindex [lindex $rawmodes 1 $i $j] 1]*$norm]
> rawmodes is a 2D array( or is it? ) so trying rawmodes[i][j] just
> doesn't make sense.
> Can somebody please clarify.
> Thanks and regards,
> ESPResSo-devel mailing list