Brainsimulation
Simulation of the human brain.
Data Fields
partialsimulationcontext_t Struct Reference

Struct to pass all execution information to a new thread for executing a tick (or parts thereof). More...

#include <definitions.h>

Collaboration diagram for partialsimulationcontext_t:
Collaboration graph
[legend]

Data Fields

int num_ticks
 Number of ticks in the simulation.
 
double tick_ms
 Milliseconds in between each simulation tick.
 
int number_nodes_x
 The number of total nodes in the first dimension of nodes.
 
int number_nodes_y
 The number of total nodes in the second dimension of nodes.
 
int num_obervationnodes
 The number of nodes to observe.
 
nodetimeseries_tobservationnodes
 Timeseries to write the observations into.
 
nodeval_t ** old_state
 2D array of nodes with their current energy level.Size number_nodes_x * number_nodes_y.
 
nodeval_t ** new_state
 2D array of nodes with the new energy level.Values will be overwritten.Size number_nodes_x * number_nodes_y.
 
nodeval_t ** slopes
 2D array of nodes with their slope from the last tick iteration level. More...
 
nodeval_t **** kernels
 2D array containing the kernels of each node at each index.Each index node points to an array containing(currently) two kernels, each(currently) containing 4 neighbouring noides.Dimensions: number_nodes_x * number_nodes_y * 2 * 4.
 
int thread_start_x
 Node x index at which to start working in this thread (inclusive).
 
int thread_end_x
 Node x index at which to stop working in this thread (exclusive).
 
kernelfunc_t d_ptr
 Function pointer pointing to the kernel function for the direct neighborhood.
 
kernelfunc_t id_ptr
 Function pointer pointing to the kernel function for the indirect neighborhood.
 
int number_global_inputs
 Number of inputs on the entire node grid.
 
nodeinputseries_tglobal_inputs
 Contains information about the coordinates and the values of all input nodes to be changed during execution. More...
 
int number_partial_inputs
 Number of inputs in the sub-grid of this partial simulation. More...
 
nodeinputseries_t ** partial_inputs
 Points the the inputs in the sub-grid of this partial simulation. More...
 
threadbarrier_tbarrier
 Barrier to wait at.
 

Detailed Description

Struct to pass all execution information to a new thread for executing a tick (or parts thereof).

Field Documentation

nodeinputseries_t* partialsimulationcontext_t::global_inputs

Contains information about the coordinates and the values of all input nodes to be changed during execution.

All values must be set. Length: number_global_inputs.

int partialsimulationcontext_t::number_partial_inputs

Number of inputs in the sub-grid of this partial simulation.

Sub-grid is defined by thread_start_x and thread_end_x.

nodeinputseries_t** partialsimulationcontext_t::partial_inputs

Points the the inputs in the sub-grid of this partial simulation.

Sub-grid is defined by thread_start_x and thread_end_x. Length: number_partial_inputs.

nodeval_t** partialsimulationcontext_t::slopes

2D array of nodes with their slope from the last tick iteration level.

Size number_nodes_x * number_nodes_y.


The documentation for this struct was generated from the following file: