/*
* test_time_input.sli
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* NEST is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NEST. If not, see <http://www.gnu.org/licenses/>.
*
*/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Event Timing Test Program: SLI Input of Time Values
% --------------------------
%
% This program is part of a series of test programs verifying the
% consistency of event timing in the simulation kernel.
%
% Here we check whether the SLI code specification of time
% values in units of ms works.
%
% The expected output is documented at the end of the script.
%
% July 2004,
% updated, Diesmann
% February 2004,
% Markus Diesmann
% Marc-Oliver Gewaltig
% Hans Ekkehard Plesser
/unittest (7488) require
/unittest using
0 <<
/local_num_threads 1
/resolution 0.1 % in ms
>> SetStatus
/dc_generator Create /dg Set
[1.8 2.8] dup
{
<< >> begin
/s Set
dg << /start s >> SetStatus
dg /start get
cvs cvd
end
} Map
sub { abs } Map Plus
0.0 eq assert_or_die
endusing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Expected output of this program:
%
% The expected output probably is that the value of /start remains
% equal to the specified value at least to the accuracy of the time
% base of the simulation kernel
% (not the current computation step size).
%
% Program
% test_iaf_dc_aligned.sli
% is an application exhibiting the problem
%
% output desired output
%
% 1.800000e+00 1.8
% 2.799000e+00 2.8
%
% checking version of 3.3.2004, MD
%
% 1.800000e+00
% 2.800000e+00
% ok.
%
%