ufl
ufl copied to clipboard
replace: only expand CoefficientDerivative
replace was unecessarily expanding all derivatives too early. This becomes a problem in Irksome where we introduce a TimeDerivative that cannot be expanded in UFL.
This PR avoids this problem by expanding CoefficientDerivative only.