Skip to content

Commit

Permalink
ion_bit_ can have many bits.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Sep 20, 2024
1 parent 3f213b0 commit 23071ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nrnoc/eion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ void nrn_check_conc_write(Prop* p_ok, Prop* pion, int i) {
}
for (k = 0, j = 0; j < n_memb_func; ++j) {
if (nrn_is_ion(j)) {
ion_bit_[j] = (1 << k);
++k;
assert(k < max_ions);
ion_bit_[j].set(k);
++k;
}
}

Expand Down

0 comments on commit 23071ee

Please sign in to comment.