We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FastGaussQuadrature
1 parent 815f824 commit a8d8ad1Copy full SHA for a8d8ad1
1 file changed
src/controller/transcription.jl
@@ -190,11 +190,11 @@ struct OrthogonalCollocation <: CollocationMethod
190
throw(ArgumentError("h argument must be 0 or 1 for OrthogonalCollocation."))
191
end
192
if roots==:gaussradau
193
- x, _ = FastGaussQuadrature.gaussradau(no, COLLOCATION_NODE_TYPE)
+ x, _ = FastGaussQuadrature.gaussradau(COLLOCATION_NODE_TYPE, no)
194
# we reverse the nodes to include the τ=1.0 node:
195
τ = (reverse(-x) .+ 1) ./ 2
196
elseif roots==:gausslegendre
197
- x, _ = FastGaussQuadrature.gausslegendre(no)
+ x, _ = FastGaussQuadrature.gausslegendre(COLLOCATION_NODE_TYPE, no)
198
# converting [-1, 1] to [0, 1] (see
199
# https://en.wikipedia.org/wiki/Gaussian_quadrature#Change_of_interval):
200
τ = (x .+ 1) ./ 2
0 commit comments