Skip to content

Commit fa79c6c

Browse files
committed
FlattenMapper: mod 1 is zero
1 parent fd9d07d commit fa79c6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymbolic/mapper/flattener.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def map_remainder(self, expr: p.Remainder) -> ExpressionT:
8888
if p.is_zero(r_num):
8989
return 0
9090
if p.is_zero(r_den - 1):
91-
return r_num
91+
# mod 1 is zero
92+
return 0
9293

9394
return expr.__class__(r_num, r_den)
9495

0 commit comments

Comments
 (0)