Hacky way of obtaining n_vars
is dangerous when using different data types
#2135
Labels
bug
Something isn't working
n_vars
is dangerous when using different data types
#2135
During my recent ventures into floating point data types beyond
Float64
I encountered crashing simulations/callbacks when not being careful.In particular,
is dangerous if datatypes are not consistent across solver, equations, mesh, ode, callbacks etc.
We use this hack at different places: https://github.com/search?q=repo%3Atrixi-framework%2FTrixi.jl+%22n_vars+%3D+size%28%22&type=code
The text was updated successfully, but these errors were encountered: