Skip to content
Snippets Groups Projects
Commit 93e8eb99 authored by Markus Holzer's avatar Markus Holzer
Browse files

simplify condition

parent e3edea5e
No related merge requests found
Pipeline #73504 failed with stages
in 17 minutes and 53 seconds
......@@ -800,10 +800,7 @@ class UBB(LbBoundary):
neighbor_offset = NeighbourOffsetArrays.neighbour_offset(dir_symbol, lb_method.stencil)
velocity = tuple(v_i
if isinstance(v_i, Field.Access) and not vel_from_idx_field
else v_i
for v_i in vel)
velocity = tuple(v_i for v_i in vel)
if self._adaptVelocityToForce:
cqc = lb_method.conserved_quantity_computation
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment