From 1bdfbef73f069aed66717a937076461c38149a3c Mon Sep 17 00:00:00 2001 From: Geoffroy Lesur Date: Sat, 21 Oct 2023 12:29:06 +0200 Subject: [PATCH] fix non-cartesian PLM --- src/fluid/RiemannSolver/extrapolateToFaces.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fluid/RiemannSolver/extrapolateToFaces.hpp b/src/fluid/RiemannSolver/extrapolateToFaces.hpp index 0c585910..87518ca8 100644 --- a/src/fluid/RiemannSolver/extrapolateToFaces.hpp +++ b/src/fluid/RiemannSolver/extrapolateToFaces.hpp @@ -166,7 +166,7 @@ class ExtrapolateToFaces { } else { // No shock flattening dv = SL::PLMLim(dvp,dvm,cp,cm); } - PrimL(nv,k+koffset,j+joffset,i+ioffset) = v0 + dmArray(index)*dv; + PrimL(nv,k+koffset,j+joffset,i+ioffset) = v0 + dpArray(index)*dv; PrimR(nv,k,j,i) = v0 - dmArray(index)*dv; }); }