From 4edf65d7b045c2342e13fe4319a290ea2e3bef48 Mon Sep 17 00:00:00 2001 From: "w.klijn" <nonoice@gmail.com> Date: Tue, 9 Aug 2016 10:56:00 +0200 Subject: [PATCH] Non working step towards arguments function pointer forwarding --- src/communication/communicator.hpp | 3 ++- src/model.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/communication/communicator.hpp b/src/communication/communicator.hpp index 27981695..4480f4d7 100644 --- a/src/communication/communicator.hpp +++ b/src/communication/communicator.hpp @@ -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 diff --git a/src/model.hpp b/src/model.hpp index 2ebaf14f..02b7b370 100644 --- a/src/model.hpp +++ b/src/model.hpp @@ -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); }; -- GitLab