In what order do the commands in NEURON .MOD/NMODL file sections get executed? Specifically, within these blocks: DERIVATIVE, BREAKPOINT and NET_RECEIVE.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
For every time-step, the order of execution is as follows:
- NET_RECEIVE: If there is net_send() an event that targets this mechanism, lines here are executed first. Skipped otherwise.
- Lines in BREAKPOINT: The SOLVE ... METHOD line is ignored. All lines after SOLVE are executed. With a
printf()
statement, you would see two calls. However, one of the calls does not actually set any state variables. It is used to compute the derivatives. - Finally, the DERIVATIVE block: The values for the derivatives (
X' = ...
) are computed. Keep in mind, to get the value by which the state variable actually changes, multiply bydt
.