WIP: Fix Code Generation Errors
Therea are two failing test cases here for the compiler.
-
test_operator_compiler_overwrite
: the same expression (dx0/dr0) appears in both a user provided expression (eval_code
) and the discretization metrics (discr_code
) and the code generator gets confused and overwritesexpr_to_name
inOperatorCompiler
(I think?). -
test_incorrect_assignment_aggregation
: the greedy assignment aggregation code gets confused on the given expression. Not quite sure where it fails to track dependencies properly.
Edited by Alexandru Fikl