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
Copy file name to clipboardExpand all lines: src/utils.jl
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,12 @@ function check_equations(eqs, iv)
201
201
isequal(single_iv, iv) ||
202
202
throw(ArgumentError("Differential w.r.t. variable ($single_iv) other than the independent variable ($iv) are not allowed."))
203
203
end
204
+
205
+
for eq in eqs
206
+
vars, pars =collect_vars(eq, iv)
207
+
isempty(vars) &&!isempty(pars) &&
208
+
throw(ArgumentError("Equation $eq contains only parameters, but relationships between parameters should be specified with defaults or parameter_dependencies."))
209
+
end
204
210
end
205
211
"""
206
212
Get all the independent variables with respect to which differentials are taken.
0 commit comments