Skip to content

Commit

Permalink
move precise spike time offset from Event to Time class
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Sep 21, 2023
1 parent d879ac9 commit 7f51260
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nestkernel/event_delivery_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ EventDeliveryManager::deliver_events_( const size_t tid, const std::vector< Spik
{
const SpikeDataT& spike_data = recv_buffer[ rank * spike_buffer_size_per_rank + i * SPIKES_PER_BATCH + j ];
se_batch[ j ].set_stamp( prepared_timestamps[ spike_data.get_lag() ] );
se_batch[ j ].get_stamp().set_offset( spike_data.get_stamp().get_offset() );
se_batch[ j ].get_stamp().set_offset( spike_data.get_offset() );
tid_batch[ j ] = spike_data.get_tid();
syn_id_batch[ j ] = spike_data.get_syn_id();
lcid_batch[ j ] = spike_data.get_lcid();
Expand All @@ -693,7 +693,7 @@ EventDeliveryManager::deliver_events_( const size_t tid, const std::vector< Spik
const SpikeDataT& spike_data =
recv_buffer[ rank * spike_buffer_size_per_rank + num_batches * SPIKES_PER_BATCH + j ];
se_batch[ j ].set_stamp( prepared_timestamps[ spike_data.get_lag() ] );
se_batch[ j ].set_offset( spike_data.get_offset() );
se_batch[ j ].get_stamp().set_offset( spike_data.get_offset() );
tid_batch[ j ] = spike_data.get_tid();
syn_id_batch[ j ] = spike_data.get_syn_id();
lcid_batch[ j ] = spike_data.get_lcid();
Expand All @@ -716,7 +716,7 @@ EventDeliveryManager::deliver_events_( const size_t tid, const std::vector< Spik
const SpikeDataT& spike_data = recv_buffer[ rank * spike_buffer_size_per_rank + i * SPIKES_PER_BATCH + j ];

se_batch[ j ].set_stamp( prepared_timestamps[ spike_data.get_lag() ] );
se_batch[ j ].set_offset( spike_data.get_offset() );
se_batch[ j ].get_stamp().set_offset( spike_data.get_offset() );

syn_id_batch[ j ] = spike_data.get_syn_id();
// for compressed spikes lcid holds the index in the
Expand Down Expand Up @@ -753,8 +753,9 @@ EventDeliveryManager::deliver_events_( const size_t tid, const std::vector< Spik
{
const SpikeDataT& spike_data =
recv_buffer[ rank * spike_buffer_size_per_rank + num_batches * SPIKES_PER_BATCH + j ];

se_batch[ j ].set_stamp( prepared_timestamps[ spike_data.get_lag() ] );
se_batch[ j ].set_offset( spike_data.get_offset() );
se_batch[ j ].get_stamp().set_offset( spike_data.get_offset() );
syn_id_batch[ j ] = spike_data.get_syn_id();
// for compressed spikes lcid holds the index in the
// compressed_spike_data structure
Expand Down

0 comments on commit 7f51260

Please sign in to comment.