You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the code below, I get the error Expecting scalar coefficient in this branch. I believe this is a genuine bug but can't rule out user error. This is the same problem as in #1723 so I tried Ivan's trick of passing the form through ufl.algorithms.expand_derivatives first, but it didn't improve matters.
Changing momentum_eq = friction without the viscosity or gravity terms makes the error go away, but I'm not sure how much that helps diagnose the problem.
The text was updated successfully, but these errors were encountered:
Although you can put "anything" of the right shape into the third slot of derivative, it seems like the differentiation handler for GateauxDerivative doesn't actually handle all cases correctly. Basically, it's only expecting a few things.
When I run the code below, I get the error
Expecting scalar coefficient in this branch
. I believe this is a genuine bug but can't rule out user error. This is the same problem as in #1723 so I tried Ivan's trick of passing the form through ufl.algorithms.expand_derivatives first, but it didn't improve matters.Changing
momentum_eq = friction
without the viscosity or gravity terms makes the error go away, but I'm not sure how much that helps diagnose the problem.The text was updated successfully, but these errors were encountered: