@@ -480,16 +480,31 @@ end
480480@testset " ParametrizedInterpolation" begin
481481 @variables y (t) = 0
482482 @parameters u[1 : 15 ] = rand (15 )
483- @parameters x[1 : 15 ] = 0 : 14
483+ @parameters x[1 : 15 ] = 0 : 14.0
484484
485- @named i = ParametrizedInterpolation (LinearInterpolation, u, x)
486- eqs = [D (y) ~ i. output. u]
485+ @testset " LinearInterpolation" begin
486+ @named i = ParametrizedInterpolation (LinearInterpolation, u, x)
487+ eqs = [D (y) ~ i. output. u]
487488
488- @named model = ODESystem (eqs, t, systems = [i])
489- sys = structural_simplify (model)
489+ @named model = ODESystem (eqs, t, systems = [i])
490+ sys = structural_simplify (model)
490491
491- prob = ODEProblem (sys, [], (0.0 , 4 ))
492- sol = solve (prob)
492+ prob = ODEProblem (sys, [], (0.0 , 4 ))
493+ sol = solve (prob)
493494
494- @test SciMLBase. successful_retcode (sol)
495+ @test SciMLBase. successful_retcode (sol)
496+ end
497+
498+ @testset " BSplineInterpolation" begin
499+ @named i = ParametrizedInterpolation (BSplineInterpolation, u, x, 3 , :Uniform , :Uniform )
500+ eqs = [D (y) ~ i. output. u]
501+
502+ @named model = ODESystem (eqs, t, systems = [i])
503+ sys = structural_simplify (model)
504+
505+ prob = ODEProblem (sys, [], (0.0 , 4 ))
506+ sol = solve (prob)
507+
508+ @test SciMLBase. successful_retcode (sol)
509+ end
495510end
0 commit comments