Skip to content

Commit

Permalink
Bugfix: Allow result of python call from rxd include flux to be free'…
Browse files Browse the repository at this point in the history
…d. (#2488)

This should fix an issue from the forum, where scaling a simple model to include more fluxes over a longer simulation fails;
https://www.neuron.yale.edu/phpBB/viewtopic.php?t=4631
  • Loading branch information
adamjhn authored Sep 4, 2023
1 parent 0110567 commit 05deaaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nrnpython/rxd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ void apply_node_flux(int n,
PyErr_SetString(PyExc_Exception,
"node._include_flux callback did not return a number.\n");
}
Py_DECREF(result);
}
} else {
PyErr_SetString(PyExc_Exception, "node._include_flux unrecognised source term.\n");
Expand Down

0 comments on commit 05deaaf

Please sign in to comment.