Skip to content

Commit 4524ea3

Browse files
adamjhnnrnhines
authored andcommitted
bugfix: bugfix: added call to nrn_shape_update so "h.doNofify()" call triggers an update to the number of rxd nodes when nseg is changed. (#252)
1 parent ba1f75d commit 4524ea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ivoc/ocnoiv1.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ extern "C" {
99

1010
extern void hoc_ret();
1111
extern void hoc_pushx(double);
12+
extern void nrn_shape_update();
1213

1314
void ivoc_help(const char*){}
1415
void ivoc_cleanup() {}
1516
int hoc_readcheckpoint(char*){ return 0; }
1617

17-
void hoc_notify_iv() {hoc_ret(); hoc_pushx(0.);}
18+
void hoc_notify_iv() {nrn_shape_update(); hoc_ret(); hoc_pushx(0.);}
1819
void hoc_xpvalue() { hoc_ret(); hoc_pushx(0.);}
1920
void hoc_xlabel() { hoc_ret(); hoc_pushx(0.);}
2021
void hoc_xbutton() { hoc_ret(); hoc_pushx(0.);}

0 commit comments

Comments
 (0)