This depends on if you are using fenics or FEniCSx.
See for instance: Evaluation of UFL expression at mesh points - #6 by dokken and subsequent points.
This depends on if you are using fenics or FEniCSx.
See for instance: Evaluation of UFL expression at mesh points - #6 by dokken and subsequent points.