SciML / ModelingToolkit.jl

An acausal modeling framework for automatically parallelized scientific machine learning (SciML) in Julia. A computer algebra system for integrated symbolics for physics-informed machine learning and automated transformations of differential equations
https://mtk.sciml.ai/dev/
Other
1.43k stars 209 forks source link

Fix @mtkmodel independent variable generation #3001

Closed hersle closed 2 months ago

hersle commented 2 months ago

This should fix https://discourse.julialang.org/t/how-do-i-import-t-nounits-with-a-different-name-than-t-in-modelingtoolkit/118640.

The issue was that the @mtkmodel macro internally generates independent variables as "variables", and not "parameters" (which @independent_variables does). I have tried to fix this in a way which is consistent with the rest of the code.

Checklist