Skip to content

Commit

Permalink
New flux_surface_avg to works on AbstractFluxSurface
Browse files Browse the repository at this point in the history
  • Loading branch information
bclyons12 committed Dec 6, 2024
1 parent b9d0245 commit 669c01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physics/fluxsurfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2041,7 +2041,7 @@ end
Flux surface averaging of a function
"""
@inline function flux_surface_avg(f::F1, surface::FluxSurface{T}) where {F1<:Function, T<:Real}
@inline function flux_surface_avg(f::F1, surface::AbstractFluxSurface{T}) where {F1<:Function, T<:Real}
return trapz(surface.ll, f) / surface.int_fluxexpansion_dl
end

Expand Down

0 comments on commit 669c01d

Please sign in to comment.