From 1580fb36af481e0655f6cf3672c7666335a62620 Mon Sep 17 00:00:00 2001 From: Orso Meneghini Date: Fri, 26 Jul 2024 16:03:14 -0700 Subject: [PATCH] minor --- src/NEO.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NEO.jl b/src/NEO.jl index b13649b..ef72578 100644 --- a/src/NEO.jl +++ b/src/NEO.jl @@ -107,14 +107,14 @@ function run_neo(input_neo::InputNEO) momentum_index(index) = 4 .+ ((index .- 1) .* 4) # sort fluxes - electrons_energy_flux = tgyro_fluxes[energy_index(e_index)] - electrons_particle_flux = tgyro_fluxes[particle_index(e_index)] + electrons_energy_flux = only(tgyro_fluxes[energy_index(e_index)]) + electrons_particle_flux = only(tgyro_fluxes[particle_index(e_index)]) ion_particle_flux = tgyro_fluxes[particle_index(i_index)] ion_total_energy_flux = sum(tgyro_fluxes[energy_index(i_index)]) ion_total_momentum_flux = sum(tgyro_fluxes[momentum_index(i_index)]) # assign fluxes to flux_solution structure - sol = IMAS.flux_solution(only(electrons_energy_flux), ion_total_energy_flux, only(electrons_particle_flux), ion_particle_flux, ion_total_momentum_flux) + sol = IMAS.flux_solution(electrons_energy_flux, ion_total_energy_flux, electrons_particle_flux, ion_particle_flux, ion_total_momentum_flux) return sol end