• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

コミットメタ情報

リビジョン5cf65824a9b1c972c6ea91cf9c80d4b2de02052a (tree)
日時2008-01-14 02:52:46
作者iselllo
コミッターiselllo

ログメッセージ

Now read_test.tcl is able to read configurations from a selected one to
a final one (specified by the user) and with a given spacing.

変更サマリ

差分

diff -r 24b6b3211e19 -r 5cf65824a9b1 TCL-codes/read_test.tcl
--- a/TCL-codes/read_test.tcl Sun Jan 13 03:18:18 2008 +0000
+++ b/TCL-codes/read_test.tcl Sun Jan 13 17:52:46 2008 +0000
@@ -27,20 +27,41 @@
2727
2828
2929
30-
30+#Now I start reading the configurations
3131
3232 #The following 2 parameters are needed to read the saved configurations
3333
34-set my_increase 1
3534
3635 # number of snapshots of the system
37-set tot_config 10
36+set tot_config 1000
37+
38+
39+#my_increase tells me how often I want to read the saved configurations
40+#in the system
41+
42+set my_increase 100
43+
44+
45+#The parameters I set above mean that I will read one configuration every my_increase
46+#out of the tot_config configurations saved
47+
48+set ini_conf 0
49+
50+#I set the value of the initial configuration I want to start reading
51+
3852
3953 # number of particles
4054
41-set n_part 10
55+set n_part 5000
4256
43-set new_iter [expr $n_part*$tot_config]
57+#set new_iter [expr $n_part*$tot_config]
58+
59+
60+set new_iter [expr $n_part*($tot_config-$ini_conf)/$my_increase]
61+
62+puts "new_iter is, $new_iter"
63+
64+
4465
4566 #counter
4667 set cnt 0
@@ -51,7 +72,7 @@
5172 set Mvel {}
5273
5374
54-set j 0
75+set j $ini_conf
5576 while {$j< $tot_config} {
5677 puts "j is $j"
5778 set f [open "config_vel_$j" "r"]
@@ -109,7 +130,9 @@
109130 lappend wlist [lindex $value ]
110131
111132 }
112-incr j $my_increase
133+#incr j $my_increase
134+incr j
135+
113136 }
114137
115138
@@ -136,7 +159,8 @@
136159 lappend wlist2 [lindex $value ]
137160
138161 }
139-incr j $my_increase
162+#incr j $my_increase
163+incr j
140164 }
141165
142166