I would suggest using ufl.conditional
with SpatialCoordinate
to create something that is evaluated at quadrature points, see for instance: Unable to use conditional module - #2 by dokken
I would suggest using ufl.conditional
with SpatialCoordinate
to create something that is evaluated at quadrature points, see for instance: Unable to use conditional module - #2 by dokken