Skip to content
Snippets Groups Projects

Draft: [Fix] Read velocity from field in UBB

Open Markus Holzer requested to merge holzer/lbmpy:UBBVelocity into master
All threads resolved!
Compare and Show latest version
1 file
+ 1
4
Preferences
Compare changes
@@ -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