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

Commit 2e34f42

Browse files
authored
Flush reports when having gap junctions (#342)
- fix old reporting macros
1 parent 9f4dab9 commit 2e34f42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coreneuron/io/reports/report_event.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace coreneuron {
1212

13-
#if defined(ENABLE_REPORTINGLIB) || defined(ENABLE_SONATA_REPORTS)
13+
#if defined(ENABLE_BIN_REPORTS) || defined(ENABLE_SONATA_REPORTS)
1414
struct VarWithMapping {
1515
int id;
1616
double* var_value;
@@ -36,6 +36,6 @@ class ReportEvent : public DiscreteEvent {
3636
std::vector<int> gids_to_report;
3737
double tstart;
3838
};
39-
#endif // defined(ENABLE_REPORTINGLIB) || defined(ENABLE_SONATA_REPORTS)
39+
#endif // defined(ENABLE_BIN_REPORTS) || defined(ENABLE_SONATA_REPORTS)
4040

4141
} // Namespace coreneuron

coreneuron/sim/fadvance_core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void nrn_fixed_step_minimal() { /* not so minimal anymore with gap junctions */
8181
}
8282
#endif
8383

84-
#ifdef ENABLE_REPORTING
84+
#if defined(ENABLE_BIN_REPORTS) || defined(ENABLE_SONATA_REPORTS)
8585
nrn_flush_reports(nrn_threads[0]._t);
8686
#endif
8787
t = nrn_threads[0]._t;

0 commit comments

Comments
 (0)