Skip to content

Commit

Permalink
fix: upwind_vflux_ppm_stencil_01
Browse files Browse the repository at this point in the history
  • Loading branch information
halungge committed Oct 4, 2022
1 parent 23ed314 commit 285db21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _upwind_vflux_ppm_stencil_01(
p_cc: Field[[CellDim, KDim], float],
) -> tuple[Field[[CellDim, KDim], float], Field[[CellDim, KDim], float]]:
z_delta_q = 0.5 * (z_face_up - z_face_low)
z_a1 = 0.5 * p_cc * (z_face_up + z_face_low)
z_a1 = p_cc - 0.5 * (z_face_up + z_face_low)

return z_delta_q, z_a1

Expand Down
2 changes: 1 addition & 1 deletion advection/tests/test_upwind_vflux_ppm_stencil_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def upwind_vflux_ppm_stencil_01_numpy(
z_face_up: np.ndarray, z_face_low: np.ndarray, p_cc: np.ndarray
) -> tuple[np.ndarray]:
z_delta_q = 0.5 * (z_face_up - z_face_low)
z_a1 = 0.5 * p_cc * (z_face_up + z_face_low)
z_a1 = p_cc - 0.5 * (z_face_up + z_face_low)
return z_delta_q, z_a1


Expand Down

0 comments on commit 285db21

Please sign in to comment.