Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions coreneuron/io/output_spikes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ void output_spikes_serial(const char* outpath) {
void output_spikes(const char* outpath, const std::string& population_name) {
// try to transfer spikes to NEURON. If successfull, don't write out.dat
if (all_spikes_return(spikevec_time, spikevec_gid))
clear_spike_vectors();
return;
#if NRNMPI
if (nrnmpi_initialized()) {
Expand All @@ -279,6 +280,7 @@ void output_spikes(const char* outpath, const std::string& population_name) {
#else
output_spikes_serial(outpath);
#endif
clear_spike_vectors();
}

void clear_spike_vectors() {
Expand Down