diff --git a/python/dune/perftool/sumfact/__init__.py b/python/dune/perftool/sumfact/__init__.py index cba13702efbf8f8a7333dc919e48c8de87048232..1900e7b51987870a2a5baeadac09f4f01dfd2a22 100644 --- a/python/dune/perftool/sumfact/__init__.py +++ b/python/dune/perftool/sumfact/__init__.py @@ -1,5 +1,6 @@ from dune.perftool.sumfact.quadrature import (quadrature_inames, quadrature_weight, + pymbolic_quadrature_position_in_cell, ) from dune.perftool.sumfact.basis import (lfs_inames, @@ -38,3 +39,7 @@ class SumFactInterface(PDELabInterface): def pymbolic_quadrature_weight(self): return quadrature_weight() + + def pymbolic_spatial_coordinate(self, restriction): + from dune.perftool.pdelab.geometry import to_global + return to_global(pymbolic_quadrature_position_in_cell(restriction))