Page 1 of 1

A Question about graph.size()

Posted: Sun Jun 13, 2010 10:28 pm
by henrychen1986
Hi,

http://www.neuron.yale.edu/neuron/stati ... .html#size
When I read this reference, I was not able to use this code.

Code: Select all

g.size(&dbl[0])
I got error as

Code: Select all

oc>Graph[0].size(&dbl[0])
/opt/nrn/x86_64/bin/nrniv: dbl not an array variable
 near line 25
 Graph[0].size(&dbl[0])
Thanks in advance!
Best,
-Henry

Re: A Question about graph.size()

Posted: Sun Jun 13, 2010 11:49 pm
by ted
Did you tell hoc that dbl was an array with (at least) 4 elements?
http://www.neuron.yale.edu/neuron/stati ... tml#double