From 921b18627c109fcc56b918fa8c0ac9a158a19cf8 Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Sun, 24 Nov 2024 23:35:16 -0500 Subject: [PATCH] Generalize integrand arg --- src/specializations/Line.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/specializations/Line.jl b/src/specializations/Line.jl index 4bebeb1d..7e7a3d91 100644 --- a/src/specializations/Line.jl +++ b/src/specializations/Line.jl @@ -68,7 +68,7 @@ function integral( # Integrate f along the Line differential(line, x) = t′(x) * _units(line(0)) - integrand(x::AbstractVector) = f(line(t(x[1]))) * differential(line, x[1]) + integrand(xs) = f(line(t(xs[1]))) * differential(line, xs[1]) # HCubature doesn't support functions that output Unitful Quantity types # Establish the units that are output by f