Skip to content

Commit a8d8ad1

Browse files
committed
debug: avoid deprecated function in FastGaussQuadrature
1 parent 815f824 commit a8d8ad1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/controller/transcription.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ struct OrthogonalCollocation <: CollocationMethod
190190
throw(ArgumentError("h argument must be 0 or 1 for OrthogonalCollocation."))
191191
end
192192
if roots==:gaussradau
193-
x, _ = FastGaussQuadrature.gaussradau(no, COLLOCATION_NODE_TYPE)
193+
x, _ = FastGaussQuadrature.gaussradau(COLLOCATION_NODE_TYPE, no)
194194
# we reverse the nodes to include the τ=1.0 node:
195195
τ = (reverse(-x) .+ 1) ./ 2
196196
elseif roots==:gausslegendre
197-
x, _ = FastGaussQuadrature.gausslegendre(no)
197+
x, _ = FastGaussQuadrature.gausslegendre(COLLOCATION_NODE_TYPE, no)
198198
# converting [-1, 1] to [0, 1] (see
199199
# https://en.wikipedia.org/wiki/Gaussian_quadrature#Change_of_interval):
200200
τ = (x .+ 1) ./ 2

0 commit comments

Comments
 (0)