devito icon indicating copy to clipboard operation
devito copied to clipboard

Rebuilding a `ConditionalDimension` with no factor adds a factor.

Open EdCaunt opened this issue 4 months ago • 2 comments

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.

EdCaunt avatar Mar 04 '24 19:03 EdCaunt