Skip to content

Commit f476873

Browse files
committed
tests: Enforce cire-minmem=True where necessary
1 parent 1c77ae5 commit f476873

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_operator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2209,8 +2209,12 @@ def test_temp_array(self, caplog, override):
22092209
eq0 = Eq(f.forward, g + sin(a).dx)
22102210
eq1 = Eq(g.forward, f + sin(a).dx)
22112211

2212+
# Ensure the same behavior (and thus honours legacy) irrespective of the
2213+
# Operator.CIRE_MINMEM value
2214+
opt = ('advanced', {'cire-minmem': True})
2215+
22122216
with switchconfig(log_level='DEBUG'), caplog.at_level(logging.DEBUG):
2213-
op = Operator([eq0, eq1])
2217+
op = Operator([eq0, eq1], opt=opt)
22142218

22152219
# Regression to ensure this test functions as intended
22162220
# Ensure an array temporary is created

0 commit comments

Comments
 (0)