Issue with dolfinx.fem.create_matrix

As shown in: dolfinx/test_nonlinear_assembler.py at 611361eb24a6b8f6a9480b2034f53dc67feecf7e · FEniCS/dolfinx · GitHub
you need to call fem.form(E_alpha) and fem.form(E_alpha_alpha).

The reason for this is explained in:

and suggested input parameters to fem.form is highlighted in
https://jorgensd.github.io/dolfinx-tutorial/chapter4/compiler_parameters.html

2 Likes