Skip to content

Commit

Permalink
temporary debug commit to understand assertion during coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Dec 28, 2023
1 parent f0d8bdb commit 302fb96
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/nrniv/nrncore_write/callbacks/nrncore_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,17 @@ int core2nrn_nmodlrandom(int tid,
}

auto& nrnindices = nrn_mech_random_indices(type); // for sanity checking
if (nrnindices != indices) {
printf("tid=%d type=%d size=(%zd %zd)\n", tid, type, indices.size(), nrnindices.size());
printf(" indices\n");
for (auto i: indices) {
printf(" %d\n", i);
}
printf(" nrnindices\n");
for (auto i: nrnindices) {
printf(" %d\n", i);
}
}
assert(nrnindices == indices);
assert(nmodlrandom.size() == indices.size() * ml->nodecount);

Expand Down

0 comments on commit 302fb96

Please sign in to comment.