Skip to content

Commit

Permalink
Merge pull request #1147 from hakonsbm/connect_layers_connections_cha…
Browse files Browse the repository at this point in the history
…nged

Fix MPI synchronization problem in presence of very small layers
  • Loading branch information
heplesser committed Apr 5, 2019
2 parents 8ffa780 + 6e64c37 commit 3c6f0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions nestkernel/connection_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ nest::ConnectionManager::data_connect_single( const index source_id,
bool
nest::ConnectionManager::data_connect_connectome( const ArrayDatum& connectome )
{
kernel().connection_manager.set_have_connections_changed( true );
for ( Token* ct = connectome.begin(); ct != connectome.end(); ++ct )
{
DictionaryDatum cd = getValue< DictionaryDatum >( *ct );
Expand Down
2 changes: 2 additions & 0 deletions topology/topology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ connect_layers( const index source_gid,
const index target_gid,
const DictionaryDatum& connection_dict )
{
kernel().connection_manager.set_have_connections_changed( true );

AbstractLayer* source = dynamic_cast< AbstractLayer* >(
kernel().node_manager.get_node( source_gid ) );
AbstractLayer* target = dynamic_cast< AbstractLayer* >(
Expand Down

0 comments on commit 3c6f0f3

Please sign in to comment.