Skip to content
Snippets Groups Projects

Fix longruns

Merged Markus Holzer requested to merge holzer/lbmpy:FixLongruns into master
Viewing commit c7386977
Show latest version
1 file
+ 1
1
Preferences
Compare changes
@@ -626,7 +626,7 @@ class DiffusionDirichlet(LbBoundary):
@@ -626,7 +626,7 @@ class DiffusionDirichlet(LbBoundary):
return [LbmWeightInfo(lb_method, self._data_type)]
return [LbmWeightInfo(lb_method, self._data_type)]
def __call__(self, f_out, f_in, dir_symbol, inv_dir, lb_method, index_field):
def __call__(self, f_out, f_in, dir_symbol, inv_dir, lb_method, index_field):
assert lb_method.conserved_quantity_computation.zero_centered_pdfs is False, \
assert lb_method.conserved_quantity_computation.zero_centered_pdfs is True, \
"DiffusionDirichlet only works for methods with normal pdfs storage -> set zero_centered=False"
"DiffusionDirichlet only works for methods with normal pdfs storage -> set zero_centered=False"
weight_info = LbmWeightInfo(lb_method, self._data_type)
weight_info = LbmWeightInfo(lb_method, self._data_type)
w_dir = weight_info.weight_of_direction(dir_symbol, lb_method)
w_dir = weight_info.weight_of_direction(dir_symbol, lb_method)