You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function inner_gravity(point_gravity, mu, g, n, r)
93
94
# This is slightly inefficient, producing three if statements, one for each array entry. The function registration for array-valued does not work properly so this is a workaround for now. Hitting, among other problems, https://github.com/SciML/ModelingToolkit.jl/issues/2808
94
95
gvp =-(mu/(r'r))*(r/_norm(r))
95
96
gvu = g * n
96
-
ifelse.(point_gravity==true, gvp, gvu)
97
+
[ifelse(point_gravity == true, gvp[i], gvu[i]) for i in 1:3]
0 commit comments