Skip to content

Commit

Permalink
no need to send ReportEvent back to nrn
Browse files Browse the repository at this point in the history
  • Loading branch information
WeinaJi committed Sep 28, 2023
1 parent 3d6b9e5 commit 96276d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coreneuron/io/core2nrn_data_return.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,10 @@ static bool core2nrn_tqueue_item(TQItem* q, SelfEventWeightMap& sewm, NrnThread&
// nothing to transfer
break;
}
case ReportEventType: {
// no need to transfer ReportEvent
break;
}
default: {
// In particular, InputPreSyn does not appear in tqueue as it
// immediately fans out to NetCon.
Expand Down
3 changes: 3 additions & 0 deletions src/coreneuron/io/reports/report_event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ class ReportEvent: public DiscreteEvent {
bool require_checkpoint() override;
void summation_alu(NrnThread* nt);
void lfp_calc(NrnThread* nt);
virtual int type() const override {
return ReportEventType;
}

private:
double dt;
Expand Down
1 change: 1 addition & 0 deletions src/coreneuron/network/netcon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class NetCvode;
#define PreSynType 4
#define NetParEventType 7
#define InputPreSynType 20
#define ReportEventType 8

struct DiscreteEvent {
DiscreteEvent() = default;
Expand Down

0 comments on commit 96276d0

Please sign in to comment.