From 30c3ec401cd0a2af2799fcc639e8296181e25433 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Fri, 30 Aug 2024 12:52:35 +0100 Subject: [PATCH] Update input.cc --- input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.cc b/input.cc index f8f0d22c7..015935c56 100644 --- a/input.cc +++ b/input.cc @@ -832,7 +832,7 @@ void read_atomicdata_files() { globals::elements[element].ions[ion].first_nlte = -1; globals::elements[element].ions[ion].levels = - static_cast(malloc(nlevelsmax * sizeof(EnergyLevel))); + static_cast(malloc(nlevelsmax * sizeof(EnergyLevel *))); assert_always(globals::elements[element].ions[ion].levels != nullptr); read_ion_levels(adata, element, ion, nions, nlevels, nlevelsmax, energyoffset, ionpot);