Skip to content

Commit 36715bb

Browse files
committed
a fix
1 parent f4821b6 commit 36715bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/discretization/generate_bc_eqs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function boundary_value_maps(II, s::DiscreteSpace{N,M,G}, boundary, derivweights
8282
othervars = map(boundary.depvars) do v
8383
substitute(v, r)
8484
end
85-
othervars = filter(x -> any(isequal(x_), arguments(depvar(x, s))), othervars)
85+
othervars = filter(v -> any(isequal(x_), arguments(depvar(v, s))), othervars)
8686

8787
# Shift depending on the boundary
8888
shift(::LowerBoundary) = zero(II)
@@ -139,7 +139,7 @@ function boundary_value_maps(II, s::DiscreteSpace{N,M,G}, boundary, derivweights
139139
othervars = map(boundary.depvars) do v
140140
substitute(v, r)
141141
end
142-
othervars = filter(x -> any(isequal(x_), arguments(depvar(x, s))), othervars)
142+
othervars = filter(v -> any(isequal(x_), arguments(depvar(v, s))), othervars)
143143

144144
depvarderivbcmaps = [(Differential(x_)^d)(u_) => central_difference(derivweights.map[Differential(x_)^d], II, s, [], (x2i(s, u, x_), x_), u, ufunc) for d in derivweights.orders[x_]]
145145
depvarbcmaps = [v_ => s.discvars[depvar(v_, s)][II] for v_ in [u_; othervars]]

0 commit comments

Comments
 (0)