Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Lampert <[email protected]>
  • Loading branch information
mikeingold and JoshuaLampert authored Nov 28, 2024
1 parent 5551192 commit f1e7d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integral.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function _integral(
`GaussKronrod` for surfaces.", :integral)

# Nested integration
integrand(u, v) = f(geometry(u, v)) * differential(geometry, (u, v), diff_method)
∫₁(v) = QuadGK.quadgk(u -> integrand(u, v), zero(FP), one(FP); rule.kwargs...)[1]
integrand2D(u, v) = f(geometry(u, v)) * differential(geometry, (u, v), diff_method)
∫₁(v) = QuadGK.quadgk(u -> integrand2D(u, v), zero(FP), one(FP); rule.kwargs...)[1]
return QuadGK.quadgk(v -> ∫₁(v), zero(FP), one(FP); rule.kwargs...)[1]
else
_error_unsupported_combination("geometry with more than two parametric dimensions",
Expand Down

0 comments on commit f1e7d46

Please sign in to comment.