Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Jul 31, 2024
1 parent 0cb2ac2 commit dfa9491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/physics/gacode_constants.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -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]
Expand Down

0 comments on commit dfa9491

Please sign in to comment.