From e2b00f4ec963060be98939c7b0d12d6c00e50a02 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 31 Oct 2019 13:13:00 +0100 Subject: Call symbolic generator inside code templates This paves the way for dropping in other LBM collision models. As a side benefit the default momenta calulcation is now fully inlined where possible. --- boltzgen.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'boltzgen.py') diff --git a/boltzgen.py b/boltzgen.py index b4a9fe8..82adafe 100755 --- a/boltzgen.py +++ b/boltzgen.py @@ -26,11 +26,8 @@ lattice = eval("lbm.model.%s" % args.lattice) if args.index is None: args.index = 'XYZ' -lbm = LBM(lattice) generator = Generator( - descriptor = lattice, - moments = lbm.moments(optimize = not args.disable_cse), - collision = lbm.bgk(f_eq = lbm.equilibrium(), tau = float(args.tau), optimize = not args.disable_cse), + model = LBM(lattice, tau = float(args.tau), optimize = not args.disable_cse), target = args.target, precision = args.precision, index = args.index, -- cgit v1.2.3