From 1f5b9393f7317f7e505fd4f60991797fa273e3d2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 21 Jun 2019 20:41:11 +0200 Subject: Gather interop moments in a more generic manner i.e. return unshifted moments in a implicitly ordered float4 array. Cell positions are reconstructed by a vertex shaded analogously to how it is done in compustream. --- symbolic/generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'symbolic') diff --git a/symbolic/generator.py b/symbolic/generator.py index 853bbf9..f94031f 100644 --- a/symbolic/generator.py +++ b/symbolic/generator.py @@ -47,7 +47,7 @@ class LBM: exprs = [ self.f_curr[i] + 1/tau * (f_eq_i - self.f_curr[i]) for i, f_eq_i in enumerate(f_eq) ] if optimize: - helper, f = cse(exprs, optimizations=optimizations.custom) - return (helper, assign(self.f_next, f)) + subexprs, f = cse(exprs, optimizations=optimizations.custom) + return (subexprs, assign(self.f_next, f)) else: - return ([], assign(self.f_next, f)) + return ([], assign(self.f_next, exprs)) -- cgit v1.2.3