Skip to content
Snippets Groups Projects
Commit 2466d110 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Enable iterative initialization for target='opencl'

parent a7f92ff4
Branches
Tags
1 merge request!24Enable iterative initialization for target='opencl'
...@@ -334,7 +334,7 @@ class LatticeBoltzmannStep: ...@@ -334,7 +334,7 @@ class LatticeBoltzmannStep:
tuple (residuum, steps_run) if successful or raises ValueError if not converged tuple (residuum, steps_run) if successful or raises ValueError if not converged
""" """
dh = self.data_handling dh = self.data_handling
gpu = self._optimization['target'] == 'gpu' gpu = self._gpu
def on_first_call(): def on_first_call():
self._velocity_init_vel_backup = 'velocity_init_vel_backup' self._velocity_init_vel_backup = 'velocity_init_vel_backup'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment