Skip to content

Commit db149ba

Browse files
committed
SWE WIP: Fix a bug in advection QFunction
Still need some debugging
1 parent 821e46b commit db149ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fluids/shallow-water/qfunctions/advection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ CEED_QFUNCTION(SWImplicit_Advection)(void *ctx, CeedInt Q,
321321
u_dot_grad_h += u[j] * dhdx_j;
322322
}
323323
CeedScalar strongConv = (h + H0) *div_u + u_dot_grad_h;
324-
CeedScalar strongResid = qdot[4][i] + strongConv;
324+
CeedScalar strongResid = qdot[2][i] + strongConv;
325325

326326
v[2][i] = wdetJ * qdot[2][i]; // transient part (ALWAYS)
327327

0 commit comments

Comments
 (0)