jakobj/nest-simulator

Create function for keeping track of number of connections

Closed this issue · 3 comments

The following piece of code appears in several places in ConnectionManager and should be moved to a function

  if ( num_connections_[ tid ].size() <= syn_id )
  {
    num_connections_[ tid ].resize( syn_id + 1 );
  }
  ++num_connections_[ tid ][ syn_id ];

This appears three times, in connect, connect_from_device and connect_to_device. @jarsi, could you work on this? just create a function, e.g., increase_connection_count( tid, syn_id) to remove some duplicated code.

jarsi commented

closed by #57