section arrays in templates
Posted: Fri Jun 06, 2008 3:43 pm
Hi all,
Any ideas on why the following examples don't work?
Thanks in advance,
Jose Ambros-Ingerson
PS. I'm running OSX 10.4.11 on Intel and G5
-------- example 1-------------
---------------- example 2 -------------
Any ideas on why the following examples don't work?
Thanks in advance,
Jose Ambros-Ingerson
PS. I'm running OSX 10.4.11 on Intel and G5
-------- example 1-------------
Code: Select all
begintemplate aT
proc init(){
create d1[2]
}
proc many(){
create d1[20]
}
endtemplate aT
objref a
a = new aT()
a.many()
$ nrngui atest.hoc
NEURON -- Release 6.0.4 (1819) 2007-07-20
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2007
See http://www.neuron.yale.edu/credits.html
/axon/d1/Users/jose/Software/bin/nrn-6.0/nrn/i686/bin/nrniv: Bus error See $NEURONHOME/lib/help/oc.help
in atest.hoc near line 12
a.many()
^
Code: Select all
create d1[2]
begintemplate aT
external d1
proc init(){
create d1[2]
}
proc many(){
create d1[40]
}
endtemplate aT
objref a
a = new aT()
$ nrngui atest.hoc
NEURON -- Release 6.0.4 (1819) 2007-07-20
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2007
See http://www.neuron.yale.edu/credits.html
/axon/d1/Users/jose/Software/bin/nrn-6.0/nrn/i686/bin/nrniv: Segmentation violation
in atest.hoc near line 13
a = new aT()
^
aT[0].init()