diff --git a/example/inter/arbor_proxy.cpp b/example/inter/arbor_proxy.cpp index e7985e339a87ad948717ce5f42126d1b4b887298..f897cc1d40fa4dc78d1b6e8c69ac9b30827517b9 100644 --- a/example/inter/arbor_proxy.cpp +++ b/example/inter/arbor_proxy.cpp @@ -74,7 +74,7 @@ int main(int argc, char **argv) }); std::cout << "ARB: running simulation" << std::endl; - for (unsigned step = 0; step < steps; ++step) { + for (unsigned step = 0; step <= steps; ++step) { on_local_rank_zero(info, [&] { std::cout << "ARB: callback " << step << " at t " << step*delta << std::endl; }); diff --git a/example/inter/nest.cpp b/example/inter/nest.cpp index 87ed29b8ba6a5db6eecc04155af7586f69d9aae3..fa66e9f9667bc50032b55462653d16056fa8db12 100644 --- a/example/inter/nest.cpp +++ b/example/inter/nest.cpp @@ -111,7 +111,7 @@ int main(int argc, char** argv) { print_vec_comm("NEST", local_cells, info.comm); // SEND SPIKES TO ARBOR (RUN SIMULATION) - for (unsigned step=0; step<steps; ++step) { + for (unsigned step=0; step<=steps; ++step) { if (step > steps_arbor) { throw std::runtime_error(std::string("Bad step: ") + std::to_string(step) + " > " + std::to_string(steps_arbor)); }