We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0abc56 commit daf93edCopy full SHA for daf93ed
test/structural_transformation/utils.jl
@@ -152,3 +152,12 @@ end
152
end
153
154
155
+
156
+@testset "additional passes" begin
157
+ @variables x(t) y(t)
158
+ @named sys = ODESystem([D(x) ~ x, y ~ x + t], t)
159
+ value = Ref(0)
160
+ pass(sys; kwargs...) = (value[] += 1; return sys)
161
+ structural_simplify(sys; additional_passes = [pass])
162
+ @test value[] == 1
163
+end
0 commit comments