UFL algebra and Function Constant etc...
Asked by
Chaffra Affouda
I have a general question about the algebra in dolfin.
a = Constant(1.0) is a Constant but b = -a is a Product. Is there an easy way to convert b back to a Constant? The same would apply for Function. I know project would do it (convert a Constant to a Function) but maybe something can be done at the algebra level because I found project to be time consuming.
Thanks,
Chaffra
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Martin Sandve Alnæs
- Solved:
- Last query:
- Last reply:
To post a message you must log in.