Skip to content

Commit 96268bd

Browse files
test: fix usage of incorrect MTKParameters object in generate_custom_function test
1 parent e6c9eec commit 96268bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/generate_custom_function.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fn5 = generate_custom_function(sys, ifelse(!p4, p1, p2[2]); expression = Val(fal
3030

3131
@variables x y[1:3]
3232
sys = complete(NonlinearSystem(Equation[], [x; y], [p1, p2, p3, p4]; name = :sys))
33+
p = MTKParameters(sys, [])
3334

3435
fn1 = generate_custom_function(sys, x + y[1] + p1 + p2[1] + p3; expression = Val(false))
3536
@test fn1(u0, p) == 6.0

0 commit comments

Comments
 (0)