Commit ac1c6a9 1 parent 11ba674 commit ac1c6a9 Copy full SHA for ac1c6a9
File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 12
12
cv = h .CVode ()
13
13
pc = h .ParallelContext ()
14
14
15
+
15
16
# remove address info from cv.debug_event output
16
17
def debug_event_filter (s ):
17
18
s = re .sub (r"cvode_0x[0-9abcdef]* " , "cvode_0x... " , s )
@@ -762,6 +763,21 @@ def nc_event_before_init():
762
763
expect_err ("nc.event(0)" ) # nrn_assert triggered if outside of finitialize
763
764
764
765
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
+
765
781
def test_netcvode_cover ():
766
782
nrn_use_daspk ()
767
783
node ()
@@ -774,6 +790,7 @@ def test_netcvode_cover():
774
790
scatter_gather ()
775
791
playrecord ()
776
792
interthread ()
793
+ contiguous ()
777
794
nc_event_before_init ()
778
795
779
796
You can’t perform that action at this time.
0 commit comments