This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Commit bd747a8
If a netcon_srcgid is negative, need to determine the thread. (#390)
* If a netcon_srcgid is negative, need to determine the thread.
Only for direct transfer mode is it allowed that a negative srcgid is not
in the same thread as the NetCon target.
To enable thread determination an std::vector<int> involving the name
netcon_negsrcgid_tid is associated with netcon_srcgid in that when a negative
gid appears in netcon_srcgid, the tid is the value of the element in
netcon_negsrcgid_tid.
* always resize netcon_negsrcgid_tid
* link netcon_negsrcgid_tid usage to corenrn_embedded
* nrnthreads_netcon_srcgid is more meaninfgul name.
* Revert "link netcon_negsrcgid_tid usage to corenrn_embedded"
Comments indicate that nrnthreads_netcon_negsrc_gid_tid subvectors are
definitely empty when single thread or file transfer. (will be empty
anyway if there are no negative gids)
This reverts commit c870bf3.
Co-authored-by: Alexandru Savulescu <[email protected]>1 parent 7af0c6e commit bd747a8
File tree
6 files changed
+67
-21
lines changed- coreneuron
- io
- network
- nrniv
6 files changed
+67
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
| |||
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
181 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
182 | 194 | | |
183 | 195 | | |
184 | 196 | | |
| |||
275 | 287 | | |
276 | 288 | | |
277 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
278 | 293 | | |
279 | | - | |
| 294 | + | |
280 | 295 | | |
281 | 296 | | |
282 | 297 | | |
| |||
299 | 314 | | |
300 | 315 | | |
301 | 316 | | |
302 | | - | |
303 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
304 | 323 | | |
305 | 324 | | |
306 | 325 | | |
| |||
361 | 380 | | |
362 | 381 | | |
363 | 382 | | |
364 | | - | |
| 383 | + | |
365 | 384 | | |
366 | 385 | | |
367 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
368 | 390 | | |
369 | 391 | | |
370 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
371 | 397 | | |
372 | 398 | | |
373 | | - | |
| 399 | + | |
374 | 400 | | |
375 | 401 | | |
376 | 402 | | |
| |||
390 | 416 | | |
391 | 417 | | |
392 | 418 | | |
393 | | - | |
394 | | - | |
| 419 | + | |
| 420 | + | |
395 | 421 | | |
396 | | - | |
| 422 | + | |
| 423 | + | |
397 | 424 | | |
398 | 425 | | |
399 | 426 | | |
| |||
448 | 475 | | |
449 | 476 | | |
450 | 477 | | |
451 | | - | |
| 478 | + | |
452 | 479 | | |
453 | | - | |
| 480 | + | |
454 | 481 | | |
455 | 482 | | |
456 | 483 | | |
| |||
469 | 496 | | |
470 | 497 | | |
471 | 498 | | |
| 499 | + | |
472 | 500 | | |
473 | 501 | | |
474 | 502 | | |
| |||
480 | 508 | | |
481 | 509 | | |
482 | 510 | | |
483 | | - | |
| 511 | + | |
484 | 512 | | |
485 | 513 | | |
486 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | | - | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | | - | |
| 53 | + | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
644 | 647 | | |
645 | 648 | | |
646 | 649 | | |
647 | | - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
648 | 655 | | |
649 | 656 | | |
650 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
0 commit comments