Skip to content

elementwise_integral doesn't respect quadrature rules #215

Open
@inducer

Description

As implemented here:

grudge/grudge/reductions.py

Lines 455 to 470 in f3d986b

if len(args) == 1:
vec, = args
dd = dof_desc.DOFDesc("vol", dof_desc.DISCR_TAG_BASE)
elif len(args) == 2:
dd, vec = args
else:
raise TypeError("invalid number of arguments")
dd = dof_desc.as_dofdesc(dd)
from grudge.op import _apply_mass_operator
ones = dcoll.discr_from_dd(dd).zeros(vec.array_context) + 1.0
return elementwise_sum(
dcoll, dd, vec * _apply_mass_operator(dcoll, dd, dd, ones)
)

It always falls into the mass-matrix logic, which is valid for nodal-interpolatory grids, but not quadrature grids.

cc @thomasgibson

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions