Skip to content

Commit

Permalink
Fix arity order of operators in test (#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd authored Oct 8, 2024
1 parent e6143ae commit c564469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/test/unit/fem/test_assemble_submesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,14 +688,14 @@ def f(x):
j.x.scatter_forward()
J_submesh = assemble_interior_facet_formulation(ufl.avg(j) * dS_submesh, entity_maps)
b_submesh = assemble_interior_facet_formulation(
ufl.inner(ufl.jump(v), j) * dS_submesh, entity_maps
ufl.inner(j, ufl.jump(v)) * dS_submesh, entity_maps
)

# Assemble reference value forms on the parent mesh using function defined with UFL
x = ufl.SpatialCoordinate(msh)
J_ref = assemble_interior_facet_formulation(ufl.avg(f(x)) * ufl.dS(metadata=metadata), None)
b_ref = assemble_interior_facet_formulation(
ufl.inner(ufl.jump(v), f(x)) * ufl.dS(metadata=metadata), None
ufl.inner(f(x), ufl.jump(v)) * ufl.dS(metadata=metadata), None
)

# Ensure both are equivalent
Expand Down

0 comments on commit c564469

Please sign in to comment.