aboutsummaryrefslogtreecommitdiff
path: root/symbolic
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-21 20:41:11 +0200
committerAdrian Kummerlaender2019-06-21 20:41:11 +0200
commit1f5b9393f7317f7e505fd4f60991797fa273e3d2 (patch)
tree6f089cd7e99856b89c6158ac8f4729d2d40c0f0b /symbolic
parentdfcb729ff162aba45e3d83acf864fe1ff92e5a06 (diff)
downloadsymlbm_playground-1f5b9393f7317f7e505fd4f60991797fa273e3d2.tar
symlbm_playground-1f5b9393f7317f7e505fd4f60991797fa273e3d2.tar.gz
symlbm_playground-1f5b9393f7317f7e505fd4f60991797fa273e3d2.tar.bz2
symlbm_playground-1f5b9393f7317f7e505fd4f60991797fa273e3d2.tar.lz
symlbm_playground-1f5b9393f7317f7e505fd4f60991797fa273e3d2.tar.xz
symlbm_playground-1f5b9393f7317f7e505fd4f60991797fa273e3d2.tar.zst
symlbm_playground-1f5b9393f7317f7e505fd4f60991797fa273e3d2.zip
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.
Diffstat (limited to 'symbolic')
-rw-r--r--symbolic/generator.py6
1 files changed, 3 insertions, 3 deletions
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))