Skip to content

Commit

Permalink
Changes in rate
Browse files Browse the repository at this point in the history
  • Loading branch information
sdiazpier committed Jan 31, 2018
1 parent 9dc3f24 commit dc00879
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions nestkernel/connection_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,14 +739,14 @@ nest::ConnectionManager::disconnect( Node& target,
{
throw InexistentConnection();
}
DictionaryDatum data = DictionaryDatum( new Dictionary );
/*DictionaryDatum data = DictionaryDatum( new Dictionary );
def< index >( data, names::target, target.get_gid() );
def< index >( data, names::source, sgid );
ArrayDatum conns = kernel().connection_manager.get_connections( data );
if ( conns.numReferences() == 0 )
{
throw InexistentConnection();
}
}*/
ConnectorBase* c =
kernel()
.model_manager.get_synapse_prototype( syn_id, target_thread )
Expand Down
10 changes: 5 additions & 5 deletions nestkernel/sp_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ SPManager::update_structural_plasticity( SPBuilder* sp_builder )
sp_builder->get_pre_synaptic_element_name(),
sp_builder->get_post_synaptic_element_name() );
// update the number of synaptic elements
/*get_synaptic_elements( sp_builder->get_pre_synaptic_element_name(),
get_synaptic_elements( sp_builder->get_pre_synaptic_element_name(),
pre_vacant_id,
pre_vacant_n,
pre_deleted_id,
pre_deleted_n );*/
pre_deleted_n );
}
// Get post synaptic elements data from local nodes
get_synaptic_elements( sp_builder->get_post_synaptic_element_name(),
Expand All @@ -442,15 +442,15 @@ SPManager::update_structural_plasticity( SPBuilder* sp_builder )
post_deleted_id, post_deleted_id_global, displacements );
kernel().mpi_manager.communicate(
post_deleted_n, post_deleted_n_global, displacements );

if ( post_deleted_id_global.size() > 0 )
{
delete_synapses_from_post( post_deleted_id_global,
post_deleted_n_global,
sp_builder->get_synapse_model(),
sp_builder->get_pre_synaptic_element_name(),
sp_builder->get_post_synaptic_element_name() );
/*get_synaptic_elements( sp_builder->get_pre_synaptic_element_name(),
get_synaptic_elements( sp_builder->get_pre_synaptic_element_name(),
pre_vacant_id,
pre_vacant_n,
pre_deleted_id,
Expand All @@ -459,7 +459,7 @@ SPManager::update_structural_plasticity( SPBuilder* sp_builder )
post_vacant_id,
post_vacant_n,
post_deleted_id,
post_deleted_n );*/
post_deleted_n );
}

// Communicate vacant elements
Expand Down

0 comments on commit dc00879

Please sign in to comment.