Closed jpdean closed 1 year ago
Yes, this is occuring because the coefficient number has gone above 9. For whatever reason (maybe LaTeX compatibility) the coefficients are labelled w_1, w_2, ... w_9, w_{10}, w_{11}...
etc. and the curly brackets are confusing the python string formatting. I guess this can be worked around in ffcx by scrubbing the coefficient name before using it. But maybe the problem originates in ufl
.
Fixed by FEniCS/ufl#142
The following code
fails after five loops with the error
from the compiler. I'm not sure why the generated code is being incorrectly written. Strangely, the error does not occur if the line
g = ufl.Coefficient(fe)
is removed, despiteg
not being in the form.