-
Notifications
You must be signed in to change notification settings - Fork 2
/
movie.hoc
executable file
·61 lines (48 loc) · 1.09 KB
/
movie.hoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{load_file("nrngui.hoc")}
create acell_home_
{load_file("netparmpi.hoc")}
objref pnm, pc
ncell = 10000
ncon = 100
ranoffset_ = 500 // adjacent cell streams will be correlated by this offset
connect_random_low_start_ = 1
run_random_low_start_ = 2
pnm = new ParallelNetManager(ncell)
pc = pnm.pc
iterator pcitr() {local i1, i2
i1 = 0
for (i2=pc.id; i2 < ncell; i2 += pc.nhost) {
$&1 = i1
$&2 = i2
iterator_statement
i1 += 1
}
}
{load_file("perfrun.hoc")}
setuptime = startsw()
//{cvode.fifo_queue(1)}
{load_file("net.hoc")}
//want_all_spikes()
{cvode_local(1)}
tstop = 200
init_run_random(run_random_low_start_)
mkhist(100)
setuptime = startsw() - setuptime
load_file("pltq.hoc")
xpanel("Control")
xbutton("Stop", "stoprun = 1")
xbutton("Go", "stoprun=0 prun()")
xpanel()
if (pnm.myid == 0) {print "SetupTime: ", setuptime}
prun()
if (pnm.myid == 0) {print "RunTime: ", runtime}
{pnm.pc.runworker()}
{pnm.prstat(1)}
getstat()
//{pnm.gatherspikes()}
prhist()
print_spike_stat_info()
{pnm.pc.done()}
//perf2file()
//spike2file()
{printf("ncell = %d ncon = %d tstop = %g\n", ncell, ncon, tstop) }