I would suggest using ufl.conditional
, see for instance: Unable to use conditional module - #2 by dokken, Form compilation — FEniCS Tutorial @ Sorbonne or various other posts on the forum regarding conditionals.
I would suggest using ufl.conditional
, see for instance: Unable to use conditional module - #2 by dokken, Form compilation — FEniCS Tutorial @ Sorbonne or various other posts on the forum regarding conditionals.