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 a595821 commit 2b67034Copy full SHA for 2b67034
src/utils.jl
@@ -116,7 +116,7 @@ const CheckUnits = 1 << 2
116
function check_independent_variables(ivs)
117
for iv in ivs
118
isparameter(iv) ||
119
- throw(ArgumentError("Independent variable $iv is not a parameter."))
+ @warn "Independent variable $iv should be defined with @independent_variables $iv."
120
end
121
122
test/odesystem.jl
@@ -1202,7 +1202,7 @@ end
1202
@test_nowarn @named sys = ODESystem([y ~ 0], x)
1203
1204
@variables x y(x)
1205
- @test_throws ArgumentError @named sys = ODESystem([y ~ 0], x)
+ @test_logs (:warn,) @named sys = ODESystem([y ~ 0], x)
1206
1207
@parameters T
1208
D = Differential(T)
0 commit comments