Skip to content

Commit 059416c

Browse files
committed
Accepted most reviewer chagne requests.
1 parent aa3f6df commit 059416c

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/nrncvode/cvodeobj.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ extern int hoc_return_type_code;
2323
#include "nrnpy.h"
2424
#include "tqueue.hpp"
2525
#include "mymath.h"
26-
#include "htlist.h"
2726
#include <nrnmutdec.h>
2827

2928
#if NRN_ENABLE_THREADS

src/nrncvode/cvodeobj.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "membfunc.h"
88
#include "netcon.h"
99
#include "tqitem.hpp"
10+
#include "htlist.h"
1011

1112
class NetCvode;
1213
class Daspk;

src/nrncvode/htlist.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ for fast insertion, deletion, iteration
2929
* UList - list object.
3030
*/
3131

32-
#ifndef htlist_h
33-
#define htlist_h
32+
#pragma once
3433

3534
class HTList {
3635
public:
@@ -85,4 +84,3 @@ inline void* HTList::operator()() {
8584
inline void* HTList::vptr() {
8685
return _object;
8786
}
88-
#endif

src/nrncvode/netcvode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5931,7 +5931,7 @@ void NetCvode::check_thresh(NrnThread* nt) { // for default method
59315931

59325932
for (auto* wl: wl_list_[nt->id]) {
59335933
for (HTList* item = wl->First(); item != wl->End(); item = item->Next()) {
5934-
WatchCondition* wc = (WatchCondition*) item;
5934+
WatchCondition* wc = static_cast<WatchCondition*>(item);
59355935
wc->check(nt, nt->_t);
59365936
}
59375937
}
@@ -5949,7 +5949,7 @@ void nrn2core_transfer_WATCH(void (*cb)(int, int, int, int, int)) {
59495949
for (auto& htlists_of_thread: net_cvode_instance->wl_list_) {
59505950
for (HTList* wl: htlists_of_thread) {
59515951
for (HTList* item = wl->First(); item != wl->End(); item = item->Next()) {
5952-
WatchCondition* wc = (WatchCondition*) item;
5952+
WatchCondition* wc = static_cast<WatchCondition*>(item);
59535953
nrn2core_transfer_WatchCondition(wc, cb);
59545954
}
59555955
}

test/coreneuron/test_watchrange.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ def run(method, nthread):
181181
h.run()
182182

183183
def series():
184+
# the extra (0, 0) tests transition from fixed step 4 threads
185+
# to fixed step 1 thread.
184186
for method in [(0, 0), (0, 0), (1, 0), (1, 1)]:
185187
for nthread in [1, 4]:
186188
run(method, nthread)

0 commit comments

Comments
 (0)