Resolve conflicts with UFL branch Firedrake/Complex

Declined
#457 · Created  · Last updated

Declined pull request

These modifications are no longer needed. The changes in the UFL complex branch were sufficient.

Closed by: ·2018-07-12

Description

  • 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

0 attachments

0 comments

Loading commits...