Skip to content

Commit

Permalink
fixed #487
Browse files Browse the repository at this point in the history
It is now possible to have synapses connecting 2 multi-compartment
models
  • Loading branch information
sg-s committed Mar 5, 2020
1 parent 38ea00a commit 231f14c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions c++/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ void network::integrate(double * I_ext_now) {
// all compartments where neuron_idx is NaN will be treated
// as single compartments and integrated normally

// integrate all channels in all compartments

// integrate all channels, mechanisms and synapses in all compartments
for (int i = 0; i < n_comp; i++) {

// move current values to previous values
Expand All @@ -314,19 +315,14 @@ void network::integrate(double * I_ext_now) {
comp[i]->i_Ca = 0;
comp[i]->I_ext = I_ext_now[i];

// integrate controllers

comp[i]->integrateMechanisms();

comp[i]->integrateChannels();

comp[i]->integrateSynapses();


// integrate synapses
if (isnan(comp[i]->neuron_idx))
{
comp[i]->integrateSynapses();
}

}

// integrate voltages in all single compartments
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/c++/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ and also assumes that no current is being injected into any compartment.

**Code**

[Click here to view this method's code](https://github.com/sg-s/xolotl/blob/master/c%2B%2B/network.hpp#L397)
[Click here to view this method's code](https://github.com/sg-s/xolotl/blob/master/c%2B%2B/network.hpp#L393)

-------

0 comments on commit 231f14c

Please sign in to comment.