Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit aa264c2

Browse files
authored
Fix fast_imem initialization to 0 (#507)
1 parent ce0cf78 commit aa264c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coreneuron/sim/fast_imem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ void nrn_fast_imem_alloc() {
3535
for (auto nt = nrn_threads; nt < nrn_threads + nrn_nthread; ++nt) {
3636
int n = nt->end;
3737
nt->nrn_fast_imem = (NrnFastImem*) ecalloc(1, sizeof(NrnFastImem));
38-
nt->nrn_fast_imem->nrn_sav_rhs = (double*) emalloc_align(n * sizeof(double));
39-
nt->nrn_fast_imem->nrn_sav_d = (double*) emalloc_align(n * sizeof(double));
38+
nt->nrn_fast_imem->nrn_sav_rhs = (double*) ecalloc_align(n, sizeof(double));
39+
nt->nrn_fast_imem->nrn_sav_d = (double*) ecalloc_align(n, sizeof(double));
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)