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

Non working step towards arguments function pointer forwarding

parent 471f8468
No related branches found
No related tags found
No related merge requests found
......@@ -92,10 +92,11 @@ public:
/// events in each queue are all events that must be delivered to targets in that cell
/// group as a result of the global spike exchange.
std::vector<event_queue> exchange(const std::vector<spike_type>& local_spikes,
std::function<void ()> export_function) //const std::vector<spike_type>&
std::function<void (std::vector<spike_type>)> export_function) //const std::vector<spike_type>&
{
// global all-to-all to gather a local copy of the global spike list on each node.
bool file_per_rank = true;
if (file_per_rank) {
export_function(); //local_spikes
......
......@@ -138,7 +138,8 @@ public:
PE("stepping", "exchange");
auto local_spikes = previous_spikes().gather();
future_events() = communicator_.exchange(local_spikes,
[&] { exporter_->add_and_export(); });
// [&] { exporter_->add_and_export(std::vector<spike_type> spikes); });
[&] { exporter_->add_and_export(std::vector<spike_type> spikes); });
PL(2);
};
......
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