Combined storage of node ID and offset information for off-grid spikes. More...
#include <mpi_manager.h>
Public Types | |
| typedef unsigned int | node_id_external_type |
| We defined this type explicitly, so that the assert function below always tests the correct type. | |
Public Member Functions | |
| OffGridSpike () | |
| OffGridSpike (node_id_external_type node_idv, double offsetv) | |
| unsigned int | get_node_id () const |
| void | set_node_id (node_id_external_type node_id) |
| double | get_offset () const |
Static Private Member Functions | |
| static void | assert_datatype_compatibility_ () |
| This function asserts that doubles can hold node IDs without loss. | |
Private Attributes | |
| double | node_id_ |
| node ID of neuron that spiked | |
| double | offset_ |
| offset of spike from grid | |
Friends | |
| void | MPIManager::init_mpi (int *, char ***) |
Combined storage of node ID and offset information for off-grid spikes.
double internally. This is done so that the user-defined MPI type MPI_OFFGRID_SPIKE, which we use to communicate off-grid spikes, is homogeneous. Otherwise, OpenMPI spends extreme amounts of time on packing and unpacking the data, see #458. | typedef unsigned int nest::MPIManager::OffGridSpike::node_id_external_type |
We defined this type explicitly, so that the assert function below always tests the correct type.
|
inline |
|
inline |
|
inlinestaticprivate |
This function asserts that doubles can hold node IDs without loss.
References get_node_id().
|
inline |
References node_id_.
Referenced by assert_datatype_compatibility_().
|
inline |
References offset_.
|
inline |
References node_id_.
|
friend |
|
private |
node ID of neuron that spiked
Referenced by get_node_id(), and set_node_id().
|
private |
offset of spike from grid
Referenced by get_offset().