Skip to content

Commit 6d52839

Browse files
committed
Add docstrings
1 parent 1992424 commit 6d52839

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ function collect_defaults!(defs, vars)
167167
return defs
168168
end
169169

170+
"Throw error when difference/derivative operation occurs in the R.H.S."
170171
@noinline function throw_invalid_operator(opvar, eq, op::Type)
171172
if op === Difference
172173
optext = "difference"
@@ -178,6 +179,7 @@ end
178179
throw(InvalidSystemException(msg))
179180
end
180181

182+
"Check if difference/derivative operation occurs in the R.H.S. of an equation"
181183
function check_operator_variables(eq, op::Type, expr=eq.rhs)
182184
istree(expr) || return nothing
183185
if operation(expr) isa op

0 commit comments

Comments
 (0)