Skip to content

Commit

Permalink
Update input.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Aug 30, 2024
1 parent a0c5fc8 commit 952b83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ void read_atomicdata_files() {
// store the ions data to memory and set up the ions zeta and levellist

globals::elements[element].ions[ion] = {
.levels = static_cast<EnergyLevel *>(malloc(nlevelsmax * sizeof(EnergyLevel))),
.levels = static_cast<EnergyLevel *>(calloc(nlevelsmax, sizeof(EnergyLevel))),
.ionstage = ionstage,
.nlevels = nlevelsmax,
.nlevels_nlte = 0,
Expand Down

0 comments on commit 952b83a

Please sign in to comment.