1/* 2 * ticket-643.sli 3 * 4 * This file is part of NEST. 5 * 6 * Copyright (C) 2004 The NEST Initiative 7 * 8 * NEST is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation, either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * NEST is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with NEST. If not, see <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23/* 24 Test for Ticket 643. 25 26 This test verifies that: 27 28 If connection counts sometimes become zero due to 29 incorrect counting, min_delay / max_delay get computed wrongly and the 30 things tentatively called ring buffers are not allocated 31 correctly. Subsequently, an out of bounds access crashes the 32 simulation. 33 34*/ 35 36(unittest) run 37/unittest using 38 39<< 40/local_num_threads 256 41>> SetKernelStatus 42 43/id_neuron /iaf_psc_alpha 1 Create def 44/id_generator /noise_generator 1 Create def 45 46id_generator << 47/mean 200.0 48/std 100.0 49/dt 1.0 50>> SetStatus 51 52id_generator id_neuron Connect 53 541 Simulate 55