• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版ed43d61b22c72787179e1504594a32512a4bad2f (tree)
时间2007-12-11 03:44:55
作者iselllo
Commiteriselllo

Log Message

I simply made more explicit the syntax to calculate the radius of
gyration in Espresso (by adding 0 1 $n_part), but the returned value is
exactly the same as before.

更改概述

差异

diff -r 7f8238d3eb77 -r ed43d61b22c7 TCL-codes/test.tcl
--- a/TCL-codes/test.tcl Mon Dec 10 18:33:00 2007 +0000
+++ b/TCL-codes/test.tcl Mon Dec 10 18:44:55 2007 +0000
@@ -1,7 +1,7 @@
11 set n_part 3000; #set density 0.00002
22 #set box_l [expr pow($n_part/$density,1./3.)]
33
4-set box_l 1000.
4+set box_l 10.
55 set volume [expr pow($box_l,3.)]
66
77 set density [expr $n_part/$volume ]
@@ -171,7 +171,7 @@
171171
172172
173173 #Now I calculate the radius of gyration
174- set rg [lindex [analyze rg] 0]
174+ set rg [lindex [analyze rg 0 1 $n_part] 0]
175175 puts $obs3 "[setmd time] $rg"
176176
177177 puts $obs4 "[setmd time] [part 0 print pos]"