In NEURON .MOD files what is the order of operations of the sections?

断了今生、忘了曾经 提交于 2019-12-25 06:48:09

问题


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:

  1. NET_RECEIVE: If there is net_send() an event that targets this mechanism, lines here are executed first. Skipped otherwise.
  2. 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.
  3. 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 by dt.


来源:https://stackoverflow.com/questions/36921512/in-neuron-mod-files-what-is-the-order-of-operations-of-the-sections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!