From 22a24a3b6c00eed32f82772df937397577747cac Mon Sep 17 00:00:00 2001 From: adigitoleo Date: Fri, 22 Mar 2024 08:46:43 +1100 Subject: [PATCH] fix: Fix velocity in advection2d.py --- examples/fluidity/advection2d/advection2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fluidity/advection2d/advection2d.py b/examples/fluidity/advection2d/advection2d.py index a6bf5094..a66635e1 100644 --- a/examples/fluidity/advection2d/advection2d.py +++ b/examples/fluidity/advection2d/advection2d.py @@ -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)