From f33646b89e3c18c8deca82076926d3965b68a9aa Mon Sep 17 00:00:00 2001 From: Martin Campos Pinto Date: Thu, 18 Jul 2024 15:45:57 +0200 Subject: [PATCH] add comment and print for failing test --- sympde/expr/tests/test_expr.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sympde/expr/tests/test_expr.py b/sympde/expr/tests/test_expr.py index 556b377..55236fe 100644 --- a/sympde/expr/tests/test_expr.py +++ b/sympde/expr/tests/test_expr.py @@ -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) @@ -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