From 2466d1105a5644918b296e61ff9215f224e56e91 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Fri, 24 Jan 2020 17:35:55 +0100 Subject: [PATCH] Enable iterative initialization for target='opencl' --- lbmpy/lbstep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbmpy/lbstep.py b/lbmpy/lbstep.py index aadcfa94..300dc66d 100644 --- a/lbmpy/lbstep.py +++ b/lbmpy/lbstep.py @@ -334,7 +334,7 @@ class LatticeBoltzmannStep: tuple (residuum, steps_run) if successful or raises ValueError if not converged """ dh = self.data_handling - gpu = self._optimization['target'] == 'gpu' + gpu = self._gpu def on_first_call(): self._velocity_init_vel_backup = 'velocity_init_vel_backup' -- GitLab