← Back to team overview

dolfin team mailing list archive

[Question #154649]: UFL algebra and Function Constant etc...

 

New question #154649 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/154649

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

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.



Follow ups