Skip to content

Commit

Permalink
add comment and print for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
campospinto committed Jul 18, 2024
1 parent 042afd9 commit f33646b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sympde/expr/tests/test_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1908,9 +1908,6 @@ def test_terminal_expressions_for_navier_stokes():
assert (ux.diff(x) + uy.diff(y)).simplify() == 0

# ... Compute right-hand side
from sympde.calculus import laplace, grad
from sympde.expr import TerminalExpr

a = TerminalExpr(-mu*laplace(ue), domain)
b = TerminalExpr( grad(ue), domain)
c = TerminalExpr( grad(pe), domain)
Expand All @@ -1920,6 +1917,10 @@ def test_terminal_expressions_for_navier_stokes():
fx = -mu*(ux.diff(x, 2) + ux.diff(y, 2)) + ux*ux.diff(x) + uy*ux.diff(y) + pe.diff(x)
fy = -mu*(uy.diff(x, 2) + uy.diff(y, 2)) + ux*uy.diff(x) + uy*uy.diff(y) + pe.diff(y)

# [MCP 18.07.2024] for now, this test fails here because f is essentially 0: this should be fixed
print(f'a = {a}')
print(f'b = {b}')
print(f'f = {f}')
assert (f[0]-fx).simplify() == 0
assert (f[1]-fy).simplify() == 0

Expand Down

0 comments on commit f33646b

Please sign in to comment.