How do I pass a SectionList() to the master?
Posted: Sun Dec 12, 2010 4:25 am
In my parallel simulation I have a Vector() stvec containing the start times of nsyn
NetStim() and each worker creates its own set of nsyn synapses syn[nsyn]. I pass
the start times to the master with a pc.post() as follows:
and I get it with pc.upkvec with:
How do I pass the sl SectionList(), which contains the syn locations?
NetStim() and each worker creates its own set of nsyn synapses syn[nsyn]. I pass
the start times to the master with a pc.post() as follows:
Code: Select all
func superrun(){local id
id = hoc_ac_
[ ...]
stvec.resize(0)
sl=new SectionList()
for zz=0, nsyn-1 {
stvec.append(s[zz].start)
x=syn[zz].get_loc()
sl.append()
}
[...]
pc.post(stvec)
return id
}Code: Select all
while ((id = pc.working) != 0) {
stvec = pc.upkvec
[...]
}