def setUp(self): config = LBConfig() config.seed = 0 config.access_pattern = 'AA' config.precision = 'single' config.block_size = 8 config.mem_alignment = 8 # Does not affect behaviour of any of the functions tested here. config.lat_nz, config.lat_nx, config.lat_ny = self.size_3d config.logger = DummyLogger() config.grid = 'D3Q19' self.sim = LBSim(config) self.backend = DummyBackend()
def setUp(self): config = LBConfig() config.init_iters = 0 config.seed = 0 config.access_pattern = 'AA' config.precision = 'single' config.block_size = 8 config.mem_alignment = 8 config.mode = 'batch' # Does not affect behaviour of any of the functions tested here. config.lat_nz, config.lat_nx, config.lat_ny = self.size_3d config.logger = DummyLogger() config.grid = 'D3Q19' self.sim = LBSim(config) self.backend = DummyBackend()