Christopher Tessum
Christopher Tessum
Thanks for this response, but I'm not sure I completely understand it. This is something that used to work, but stopped working sometime during the last month or so. It...
This worked fine in MTK 9.38 but was broken in 9.39. Maybe https://github.com/SciML/ModelingToolkit.jl/pull/3032 caused the problem?
Would it make sense to add a kwarg to turn off unit checking (e.g. `check_units=false`)? It could be useful in this case because `generate_initializesystem` would typically be run after `ODESystem`...
Well then!
I guess the immediate successful case would be that the example above would run without error. As far as I can tell it's just an issue of the constants that...
I guess I should link to the system that's causing the actual problem: https://data.earthsci.dev/dev/geosfp/#Using-data-from-GEOS-FP This is also related to this PR: https://github.com/SciML/MethodOfLines.jl/pull/240
Thanks!
Does this work as a test case: ``` julia function f(t) @info "evaluating unnecessary observed function" return sin(t) end ``` It gives a similar result, printing 9 lines of log...
OK, I see the miscommunication here. The problem that I have is not that there is extraneous code running in the function, it's that that function is running at all....
```julia using ModelingToolkit, DifferentialEquations using ModelingToolkit: t_nounits as t, D_nounits as D using Test using InteractiveUtils @variables x(t)=1 y(t)=1 function f(t) return sin(t) end @register_symbolic f(t) @named sys = ODESystem([...