Skip to content

Restricted Cofunction RHS #210

Restricted Cofunction RHS

Restricted Cofunction RHS #210

GitHub Actions / Firedrake real failed Dec 11, 2024 in 0s

8144 tests run, 7455 passed, 675 skipped, 14 failed.

Annotations

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, Fin..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteElement('Lagrange', triangle, 1), name=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 172)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, Fin..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, Fin..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[vcg1]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ...46)), 332))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, VectorElement(FiniteEle...range', triangle, 1), dim=2), name=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 332)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[tcg1]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ...46)), 494))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, TensorElement(FiniteEle..., shape=(2, 2), symmetry={}), name=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 494)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Conj(Inner(Argument(WithGeometry(FunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, ..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1cg1]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol...46)), 716))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829...ex=1, component=None), name='None_None'), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 716)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1cg1[0]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteEleme... 1), name=None, index=0, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 940)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1cg1[1]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteEleme...1), name=None, index=1, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 1074)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1vcg1[0]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteEleme...1), name=None, index=0, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 1208)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1vcg1[1]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Conj(Inner(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Conj(Inner(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7...6)), 1342))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, VectorEleme...2), name=None, index=1, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 1342)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Conj(Inner(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Conj(Inner(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1dg0]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol...6)), 1550))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829...x=1, component=None), name='None_None'), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 1550)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1dg0[0]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteEleme...1), name=None, index=0, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 1770)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg1dg0[1]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteEleme...0), name=None, index=1, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 1918)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg2dg1]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol...6)), 2142))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829...x=1, component=None), name='None_None'), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 2142)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Conj(Inner(Argument(WithGeometry(MixedFunctionSpace(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopol..., 1, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg2dg1[0]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteEleme...2), name=None, index=0, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 2376)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError

Check failure on line 161 in tests/firedrake/regression/test_assemble_baseform.py

See this annotation in the file changed.

@github-actions github-actions / Firedrake real

test_assemble_baseform.test_preprocess_form[cg2dg1[1]]

TypeError: Incompatible function spaces in Action
Raw output
M = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
a = Form([Integral(Product(Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
f = Coefficient(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f73829074d0>, FiniteEleme...1), name=None, index=1, component=None), Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46)), 2530)

    def test_preprocess_form(M, a, f):
        from ufl.algorithms import expand_indices, expand_derivatives
    
>       expr = action(action(M, M), f)

tests/firedrake/regression/test_assemble_baseform.py:161: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
petsc4py/PETSc/Log.pyx:188: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
petsc4py/PETSc/Log.pyx:189: in petsc4py.PETSc.Log.EventDecorator.decorator.wrapped_func
    ???
firedrake/ufl_expr.py:306: in action
    return ufl.action(form, coefficient, derivatives_expanded=derivatives_expanded)
../firedrake_venv/src/ufl/ufl/formoperators.py:135: in action
    return Action(form, coefficient)
../firedrake_venv/src/ufl/ufl/action.py:92: in __init__
    _check_function_spaces(left, right)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

left = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])
right = Form([Integral(Product(Argument(WithGeometry(IndexedProxyFunctionSpace(<firedrake.mesh.MeshTopology object at 0x7f7382..., 0, None))), 'cell', Mesh(VectorElement(FiniteElement('Lagrange', triangle, 1), dim=2), 46), 'everywhere', {}, None)])

    def _check_function_spaces(left, right):
        """Check if the function spaces of left and right match."""
        if isinstance(right, CoefficientDerivative):
            # Action differentiation pushes differentiation through
            # right as a consequence of Leibniz formula.
            right, *_ = right.ufl_operands
    
        # `left` can also be a Coefficient in V (= V**), e.g.
        # `action(Coefficient(V), Cofunction(V.dual()))`.
        left_arg = left.arguments()[-1] if not isinstance(left, Coefficient) else left
        if isinstance(right, (Form, Action, Matrix, ZeroBaseForm)):
            if left_arg.ufl_function_space().dual() != right.arguments()[0].ufl_function_space():
>               raise TypeError("Incompatible function spaces in Action")
E               TypeError: Incompatible function spaces in Action

../firedrake_venv/src/ufl/ufl/action.py:172: TypeError