Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Merged
Changes from all 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
5 changes: 4 additions & 1 deletion coreneuron/io/output_spikes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,10 @@ 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))
if (all_spikes_return(spikevec_time, spikevec_gid)) {
clear_spike_vectors();
return;
}
#if NRNMPI
if (nrnmpi_initialized()) {
output_spikes_parallel(outpath, population_name);
Expand All @@ -279,6 +281,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