Different solution values for different dolfinx version

It seems like you are ignoring the key takeaway message of my post above. To make it possible for other people to help you, it would be good if you could generate two codes that are as equal as possible. As pygmsh is not a dependency of dolfinx, you should use the same version and same mesh in both problems (preferrably the newest version with occ).
Additionally, you should use the same variable names in both codes, as:

are assembling different structures into matrix A and B than into S and T, and you should therefore get different results.

You also use different solver options:

which could influence the answer.

When you present your codes as this, it is hard for someone to give you assistance, as it is not clear what the codes should actually do, and what should compare to what.

1 Like