Page 1 of 1

Set integration method

Posted: Thu May 19, 2011 12:25 pm
by JohnP
Can the global parameter 'secondorder' be used to set the integration method in Neuron+Python?

In an ipython environment where h.dt, h.celsius etc. are accessible, trying to access
gives a segmentation fault and the message
NEURON: can use pointer only to doubles secondorder
near line 0
objref hoc_obj_[2]
(although the attribute 'secondorder' does appear in the list printed by dir(h)).

Re: Set integration method

Posted: Fri May 20, 2011 10:48 am
by ted
Have you tried the
h("any hoc statement")
syntax, e.g.
h("secondorder = 1")