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
There are a lot of huge multiline comprehensions in MethodOfLines, as I can't seem to get @rule to work within maps.
For clarity I propose the following:
reduce(vcat,
[reduce(vcat,
[[@rule*(~~a, $(Differential(x)^d)(u), ~~b) =>upwind_difference(*(~a..., ~b...), d, Idx(II, s, u, indexmap), s,
pmap.map[operation(u)][x], depvars, derivweights,
(x2i(s, u, x), x), u, wind_ufunc, indexmap)
for d in (let orders = derivweights.orders[x]
orders[isodd.(orders)]
end)]
for x inparams(u, s)])
for u in depvars])
That the for expression which closes the comprehension be on a newline, aligned with the first character inside the square bracket that begins the comprehension.
Thoughts?
The text was updated successfully, but these errors were encountered:
There are a lot of huge multiline comprehensions in MethodOfLines, as I can't seem to get @rule to work within maps.
For clarity I propose the following:
That the
for
expression which closes the comprehension be on a newline, aligned with the first character inside the square bracket that begins the comprehension.Thoughts?
The text was updated successfully, but these errors were encountered: