Skip to content

Fix constraints assembly bug

Dominic Kempf requested to merge feature/fix-constraints-assembly-bug into master

We previously used bool() on the constraints expression to find out whether we need to use the DIrichletConstraintsAssembler. However, UFL does the stupid thing of evaulating

bool(eq(x[0], 0))

to False, because x[0] and 0 are obvioulsy not the same. Veeeery bad behaviour for a symbolic language.

Merge request reports

Loading