diff --git a/src/physics/gacode_constants.jl b/src/physics/gacode_constants.jl index da325afe..b564917c 100644 --- a/src/physics/gacode_constants.jl +++ b/src/physics/gacode_constants.jl @@ -109,7 +109,7 @@ end flux_solutions::Vector{<:IMAS.flux_solution}, m1d::IMAS.core_transport__model___profiles_1d, eqt::IMAS.equilibrium__time_slice, - cp1d::core_profiles__profiles_1d) where {N<:Int} + cp1d::core_profiles__profiles_1d) Normalizes specified transport fluxes output by GA code via gyrobohm normalization and Miller volume correction """ @@ -118,7 +118,7 @@ function flux_gacode_to_fuse( flux_solutions::Vector{<:IMAS.flux_solution}, m1d::IMAS.core_transport__model___profiles_1d, eqt::IMAS.equilibrium__time_slice, - cp1d::core_profiles__profiles_1d) where {N<:Int} + cp1d::core_profiles__profiles_1d) rho_eq_idxs = [argmin(abs.(eqt.profiles_1d.rho_tor_norm .- rho)) for rho in m1d.grid_flux.rho_tor_norm] rho_cp_idxs = [argmin(abs.(cp1d.grid.rho_tor_norm .- rho)) for rho in m1d.grid_flux.rho_tor_norm]