From c5644696862635d02193d91b8dd147ea4e385c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Schartum=20Dokken?= Date: Tue, 8 Oct 2024 17:01:44 +0200 Subject: [PATCH] Fix arity order of operators in test (#3458) --- python/test/unit/fem/test_assemble_submesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/test/unit/fem/test_assemble_submesh.py b/python/test/unit/fem/test_assemble_submesh.py index 36f22ddb581..e07c91178d1 100644 --- a/python/test/unit/fem/test_assemble_submesh.py +++ b/python/test/unit/fem/test_assemble_submesh.py @@ -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