Skip to content

Commit

Permalink
fix: Fix velocity in advection2d.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adigitoleo committed Mar 21, 2024
1 parent 1176ae2 commit 22a24a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fluidity/advection2d/advection2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _interp_vel_grad(int_time):
@nb.njit(fastmath=True)
def velocity(coords, time):
"""Return prescribed velocity for 2D simple shear flow."""
return np.array([coords[0] * STRAIN_RATE, 0.0])
return np.array([coords[1] * STRAIN_RATE, 0.0])


@nb.njit(fastmath=True)
Expand Down

0 comments on commit 22a24a3

Please sign in to comment.