diff --git a/src/communication/export_manager.hpp b/src/communication/export_manager.hpp index 2a05ba19c6d160902a1b7ab69a189c1e82220bc3..90d4bacec0e1209e225e78d38327db121abdf038 100644 --- a/src/communication/export_manager.hpp +++ b/src/communication/export_manager.hpp @@ -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)); + + } } }