Skip to content

Extended linearity information in incidence lattice #30

@Keno

Description

@Keno

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions