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 8144d65 commit 30c3ec4
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 @@ -832,7 +832,7 @@ void read_atomicdata_files() {
globals::elements[element].ions[ion].first_nlte = -1;

globals::elements[element].ions[ion].levels =
static_cast<EnergyLevel *>(malloc(nlevelsmax * sizeof(EnergyLevel)));
static_cast<EnergyLevel *>(malloc(nlevelsmax * sizeof(EnergyLevel *)));
assert_always(globals::elements[element].ions[ion].levels != nullptr);

read_ion_levels(adata, element, ion, nions, nlevels, nlevelsmax, energyoffset, ionpot);
Expand Down

0 comments on commit 30c3ec4

Please sign in to comment.