gmarkall/manycore_form_compiler — Issue #58: getFieldFromCoeff in FluidityEquation returns fields we don't have in the cuda state
Author: gmarkall
Created: 2012-01-27 19:44:08+00:00
State: open

`FluidityEquation.getFieldFromCoeff` returns the first field that it finds in the state with a given coefficient. This isn't always safe, since the state can contain fields that we haven't copied to the GPU (and therefore isn't suitable as a field which we can copy to make a temporary field).

For example, it will sometime return the AbsoluteDifference field, which is a diagnostic field and isn't actually used in a UFL equation.