Skip to content

Commit

Permalink
Merge pull request #69 from tammoippen/stable_hpc_bench
Browse files Browse the repository at this point in the history
Abort in case of too few local neurons for recording in hpc_benchmark.sli
  • Loading branch information
jougs committed Aug 4, 2015
2 parents 74be75e + 6736d31 commit aeb4165
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion examples/nest/hpc_benchmark.sli
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,21 @@ myrng rdevdict /normal get CreateRDV /normal_dv Set

record_spikes true eq
{
E_net GetLocalNodes size /local_neurons Set

local_neurons Nrec lt
{
M_ERROR (BuildNetwork)
(Spikes can only be recorded from local neurons, but the number of local
neurons is smaller than the number of neurons spikes should be recorded from.
Aborting the simulation!) message
1 quit_i
} if

M_INFO (BuildNetwork)
(Connecting spike detectors.) message
E_net GetLocalNodes Nrec Take [E_detector] << /rule (all_to_all) >> << /model /syn_std >> Connect
} if
} if

% read out time used for building
toc /BuildEdgeTime Set
Expand Down

0 comments on commit aeb4165

Please sign in to comment.