                   synapse_switches,
                   time_of_last_spike_to_reach_synapse,
                   timestep);
-        //CudaSafeCall(cudaMemcpy(num_active_synapses, num_after_deactivation, sizeof(int), cudaMemcpyDeviceToDevice));
-        //CudaSafeCall(cudaMemcpy(active_synapse_indices, synapse_switches, sizeof(int)*frontend()->total_number_of_synapses, cudaMemcpyDeviceToDevice));
       }
     }
 

            id = i;       
        }
        if (id < 0){
          num_decay_terms += 1;
          h_decay_term_values = (float*)realloc(h_decay_term_values, (num_decay_terms)*sizeof(float));
          h_reversal_values = (float*)realloc(h_reversal_values, (num_decay_terms)*sizeof(float));

                  time_of_last_spike_to_reach_synapse);
        CudaCheckError();
      } else {
        CudaSafeCall(cudaMemcpy(h_num_active_synapses, num_after_deactivation, sizeof(int), cudaMemcpyDeviceToHost));
        if (h_num_active_synapses[0] < 0)
         CudaSafeCall(cudaMemset(num_after_deactivation, 0, sizeof(int)));
