Resolve conflicts with UFL branch Firedrake/Complex
Igor Baratta
Branch: jan/constant-complex
Branch: master
Declined
Declined pull request
These modifications are no longer needed. The changes in the UFL complex branch were sufficient.
Closed by: Igor Baratta·2018-07-12
Fix evaluation of constant with UFL complex
These
Constant(42)(0) float(Constant(42)) complex(Constant(42))
now work with UFL firedrake/complex branch.
Fix Constant.evaluate for returning a float
Override Evaluate (from ufl.terminal) to return a float instead of a complex in case of a scalar constant. Ex:
Constant(42)(0)
returns float.
Verify the type of the argument value