Skip to content

Cannot assemble a 2-form with a Real argument on interior facets (pyop3) #5665

Open

Description

@sghelichkhani

On the pyop3 Firedrake, assembling a 2-form with a Real test or trial function over interior facets raises, while the same form on exterior facets assembles.

import firedrake as fd

mesh = fd.UnitSquareMesh(4, 4)
V = fd.FunctionSpace(mesh, "CG", 1)
R = fd.FunctionSpace(mesh, "R", 0)
fd.assemble(fd.TestFunction(V) * fd.TrialFunction(R) * fd.ds)                    # fine
fd.assemble(fd.avg(fd.TestFunction(V)) * fd.avg(fd.TrialFunction(R)) * fd.dS)    # raises

The second call fails with NotImplementedError: Currently cannot deal with non-unit (vector-valued) columns from pyop3/visitors/concretize.py while it builds the sparsity.

A pyop2 build from before the pyop3 merge assembled these as Python matrices, and the error is the same on the merge commit 3554b11 and on current main. For now we build the Real columns as actions on the unit Real function and the Real rows from the adjoint action, which gives the same entries.

Activity

  1. added
    LLM used
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LLM used

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions