Replies: 1 comment
|
Yes, that change would indeed help (assuming that we then have indeed a |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The pre-processed code of NEMO often ends up with expressions like
limit + 0, presumably because of the tiling or some such. It will make comparing loop bounds simpler (in the future) if we simplified these expressions. This might feed in to #3310 too as the shortcut that @hiker has found for that problem won't work if we have a+ 0expression.I'm therefore proposing that we tweak the fparser2 frontend slightly to spot this situation. We can update the handler for binary_operation like so:
Apart from the fact that the binary-operation handler can now return something that isn't a BinaryOperation, are there any other drawbacks @LonelyCat124 and @sergisiso?
All reactions