Skip to content

Commit

Permalink
SWE WIP: Fix a bug in advection QFunction
Browse files Browse the repository at this point in the history
Still need some debugging
  • Loading branch information
valeriabarra committed Sep 23, 2020
1 parent 821e46b commit db149ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fluids/shallow-water/qfunctions/advection.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ CEED_QFUNCTION(SWImplicit_Advection)(void *ctx, CeedInt Q,
u_dot_grad_h += u[j] * dhdx_j;
}
CeedScalar strongConv = (h + H0) *div_u + u_dot_grad_h;
CeedScalar strongResid = qdot[4][i] + strongConv;
CeedScalar strongResid = qdot[2][i] + strongConv;

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

Expand Down

0 comments on commit db149ba

Please sign in to comment.