This shows you the differences between two versions of the page.
manual:simulation_program [2018/02/07 09:49] (current)
|Line 1:||Line 1:|
|+||===== Simulation program =====|
|+||Each Auryn simulation is a fully qualified C++ program. However, to qualify as an Auryn simulation it must initialize instances of two specific Auryn classes. These classes must be made accessible through the following three global pointers declared in ''auryn_global.h'':|
|+||System * sys;|
|+||Logger * logger;|
|+||''sys'' provides the basic scaffolding which holds together and manages an Auryn simulation. NeuronGroups and Connection instances register to the System class, the System class takes care of syncing spikes between nodes in parallel simulations, and simulations are run by calling ''sys->run( )''. ''logger'' provides a basic logging interface. In most cases the initialization of ''sys'' and ''logger'' can be [[examples::start|copied and pasted]].|