devito
devito copied to clipboard
Rebuilding a `ConditionalDimension` with no factor adds a factor.
If a ConditionalDimension
is created with factor=None
, then self._factor
is set to None
, but self.factor
will return 1. As such, when rebuilding a ConditionalDimension
with no factor, a factor of 1 is added unexpectedly, changing the generated code.