-
Notifications
You must be signed in to change notification settings - Fork 2
Description
The thermalfluid benchmark is almost linear up to parameters. We need to distinguish this case in the incidence lattice from the case where the equation is non-linear in the state. Note in particular that the coefficient may still be non-linear in other states. For example, we should infer sin(u₁) u₂ as linear in u₂ and non-linear u₁. I'm not entirely sure how to print this in the Incidence printing, but perhaps we could underline the linear arguments. As for implementation, the struct NonLinear singleton should be expanded to struct Lineararity; nonlinear::Bool; end with the nonlinear and linear the appropriate elements.
After it's supported in the lattice, there's additional work to do on the codegen side, but let's start with the lattice.