Skip to content
Snippets Groups Projects
Commit 99942ab5 authored by w.klijn's avatar w.klijn
Browse files

File only created on rank 0

parent b53112e5
No related branches found
No related tags found
No related merge requests found
......@@ -68,11 +68,15 @@ public:
}
// single file per simulation exporters
if (!single_file_per_rank) {
single_exporters_.push_back(
nest::mc::util::make_unique<
nest::mc::communication::exporter_spike_file<Time, CommunicationPolicy> >(
file_name, output_path, file_extention, over_write));
if (!single_file_per_rank) { // TODO: When we add more exporters and
//agreed on the parameter input this should be cleanup up.
if (communication_policy_.id() == 0) {
single_exporters_.push_back(
nest::mc::util::make_unique<
nest::mc::communication::exporter_spike_file<Time, CommunicationPolicy> >(
file_name, output_path, file_extention, over_write));
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment