Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit fd00a22

Browse files
pramodskumbharpramodk
authored andcommitted
Start reporting/recording of reports from t = 0 (#70)
(to be consistent with neurodamus) Update mod2c to latest master
1 parent dbb8ce9 commit fd00a22

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

coreneuron/utils/reports/nrnreport.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,12 @@ void ReportGenerator::register_report() {
124124

125125
/** avoid empty NrnThread */
126126
if (nt.ncell) {
127-
/** new event for every thread */
127+
/** new event for every thread : we start recording
128+
* reports at t = 0 (to be consistent with neurodamus).
129+
* t could be 0 at the begining or some different value
130+
* for checkpoint-restart simulations */
128131
events.push_back(new ReportEvent(dt));
129-
events[ith]->send(dt, net_cvode_instance, &nt);
132+
events[ith]->send(t, net_cvode_instance, &nt);
130133

131134
/** @todo: hard coded parameters for ReportingLib from Jim*/
132135
int sizemapping = 1;

0 commit comments

Comments
 (0)