replace fails for Indexed Coefficients
Bug #875279 reported by
Johan Hake
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UFL |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
This code:
from ufl import *
fe = FiniteElement("CG", triangle, 1)*FiniteElemen
u0, u1 = Coefficients(fe)
replace(u0*dx ,{u0:u1})
triggers an assertion:
UFLException: This implementation can only replace Terminal objects.
To post a comment you must log in.
Hm. I'm not sure how safe replace of non-terminal objects would be in general, so I don't want to go there.
But in this particular case, replacing an indexed of a coefficient, it should be feasible and safe to fix.