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.
check_compatible_system
1 parent 414521f commit dc5acfbCopy full SHA for dc5acfb
src/systems/codegen.jl
@@ -228,3 +228,15 @@ function isautonomous(sys::System)
228
tgrad = calculate_tgrad(sys; simplify = true)
229
all(iszero, tgrad)
230
end
231
+
232
+function check_compatible_system end
233
234
+struct SystemCompatibilityError <: Exception
235
+ msg::String
236
+end
237
238
+function Base.showerror(io::IO, err::SystemCompatibilityError)
239
+ println(io, err.msg)
240
+ println(io)
241
+ print(io, "To disable this check, pass `check_compatibility = false`.")
242
0 commit comments