From ae846c6ec4195f68bf1b0051778ddab09fa133e3 Mon Sep 17 00:00:00 2001 From: Zhi Date: Wed, 28 Aug 2024 16:07:07 -0400 Subject: [PATCH] update artificial viscosity in compressible_rk --- pyro/compressible_rk/fluxes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyro/compressible_rk/fluxes.py b/pyro/compressible_rk/fluxes.py index 7d410ad1d..bd6b65ead 100644 --- a/pyro/compressible_rk/fluxes.py +++ b/pyro/compressible_rk/fluxes.py @@ -195,7 +195,8 @@ def fluxes(my_data, rp, ivars, solid, tc): cvisc = rp.get_param("compressible.cvisc") _ax, _ay = interface.artificial_viscosity(myg.ng, myg.dx, myg.dy, - cvisc, q.v(n=ivars.iu, buf=myg.ng), q.v(n=ivars.iv, buf=myg.ng)) + myg.xmin, myg.ymin, myg.coord_type, + cvisc, q.v(n=ivars.iu, buf=myg.ng), q.v(n=ivars.iv, buf=myg.ng)) avisco_x = ai.ArrayIndexer(d=_ax, grid=myg) avisco_y = ai.ArrayIndexer(d=_ay, grid=myg)