ArityMismatch: Applying nonlinear operator to expression depending on form argument v_0

Issue #50 resolved
Simone Pezzuto created an issue
cell = tetrahedron
D = Domain(cell)
V = FiniteElement("P", D, 2)

u = Coefficient(V)

#Pi = exp(conditional(ge(u, 0.0), u, 0.0)) * dx
Pi = exp(max_value(u, 0.0)) * dx

L = derivative(Pi, u, TestFunction(V))
a = derivative(L, u, TrialFunction(V))

Commented version of Pi works, and they clearly yield the same result. I suspect max_value, which is probably based on max and not conditional, is not properly handled.

Comments (4)

  1. Log in to comment