Support for "and" and "or"
Asked by
Johan Hake
I wonder if it is possible to support "and" and "or" in conditional statements?
from ufl import *
fe = FiniteElement(
c = coefficient(fe)
expr = conditional(lt(c, 8) and gt(c,4), c, 0.0)
sympy overloads & and | for these operations.
Johan
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UFL Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply:
To post a message you must log in.