Skip to content

Commit ac1c6a9

Browse files
committed
Full coverage for this PR.
1 parent 11ba674 commit ac1c6a9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/cover/test_netcvode.py

+17
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
cv = h.CVode()
1313
pc = h.ParallelContext()
1414

15+
1516
# remove address info from cv.debug_event output
1617
def debug_event_filter(s):
1718
s = re.sub(r"cvode_0x[0-9abcdef]* ", "cvode_0x... ", s)
@@ -762,6 +763,21 @@ def nc_event_before_init():
762763
expect_err("nc.event(0)") # nrn_assert triggered if outside of finitialize
763764

764765

766+
def contiguous():
767+
# cover a couple of lines in the lvardt part of init_global().
768+
# Need same POINT_PROCESS type in rootnode and somewhere else on cell
769+
net = Net(8)
770+
syns = [h.ExpSyn(seg) for cell in net.cells for seg in cell.soma.allseg()]
771+
cv.active(1)
772+
cv.use_local_dt(1)
773+
h.finitialize(-65)
774+
pc.nthread(2)
775+
h.finitialize(-65)
776+
pc.nthread(1)
777+
cv.use_local_dt(0)
778+
cv.active(0)
779+
780+
765781
def test_netcvode_cover():
766782
nrn_use_daspk()
767783
node()
@@ -774,6 +790,7 @@ def test_netcvode_cover():
774790
scatter_gather()
775791
playrecord()
776792
interthread()
793+
contiguous()
777794
nc_event_before_init()
778795

779796

0 commit comments

Comments
 (0)