From 2ba43d229ee1e6098aedc9df9b1181e10f938cd6 Mon Sep 17 00:00:00 2001 From: mloubout Date: Fri, 6 Dec 2024 14:27:01 -0500 Subject: [PATCH] api: fix alias for buffering --- devito/types/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devito/types/basic.py b/devito/types/basic.py index 4b0ea425c4..e70a105296 100644 --- a/devito/types/basic.py +++ b/devito/types/basic.py @@ -877,7 +877,7 @@ def __new__(cls, *args, **kwargs): name = kwargs.get('name') alias = kwargs.get('alias') function = kwargs.get('function') - if alias or (function and function.name != name): + if alias is True or (function and function.name != name): function = kwargs['function'] = None # If same name/indices and `function` isn't None, then it's