Skip to content

Commit

Permalink
Break test_api_3d_scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Oct 24, 2024
1 parent 02647ba commit cf024e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion psydac/api/equation.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def l2_boundary_projection(equation):
test_dict = dict(zip(u, v))

# Compute product of (u, v) using dot product for vector quantities
product = lambda f, g: (f * 0.5 * g if g.atoms(ScalarFunction) else dot(f, g)) # Deliberately fail the test
product = lambda f, g: (f * g if g.atoms(ScalarFunction) else dot(f, g))

# Construct variational formulation that performs L2 projection
# of boundary conditions onto the correct space
Expand Down
2 changes: 1 addition & 1 deletion psydac/api/tests/test_api_3d_scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def run_poisson_3d_dirneu(solution, f, boundary, ncells, degree, comm=None):
# ...

# ... compute norms
l2_error = l2norm_h.assemble(u = uh)
l2_error = l2norm_h.assemble(u = uh) + 1
h1_error = h1norm_h.assemble(u = uh)
# ...

Expand Down

0 comments on commit cf024e8

Please sign in to comment.