Skip to content

Commit

Permalink
Abandon use of N
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold authored Dec 3, 2024
1 parent cfafe11 commit c63c738
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 @@ -84,9 +84,9 @@ function _integral(
# Domain transformation: x [-1,1] ↦ t [0,1]
t(x) = (1 // 2) * x + (1 // 2)

function integrand((weights, nodes); N=N)
function integrand((weights, nodes))
# Transforms nodes/xs, store in an NTuple
ts = ntuple(i -> t(nodes[i]), N)
ts = ntuple(i -> t(nodes[i]), length(nodes))
# Integrand function
prod(weights) * f(geometry(ts...)) * differential(geometry, ts, diff_method)
end
Expand Down

0 comments on commit c63c738

Please sign in to comment.