Skip to content
Snippets Groups Projects

Fix FreeSlip boundary condition

Merged Daniel Bauer requested to merge he66coqe/lbmpy:fix-freeslip into master
Viewing commit d661f1e3
Show latest version
2 files
+ 11
9
Preferences
Compare changes
Files
2
@@ -88,10 +88,10 @@ class BetweenTimestepsIndexing:
@@ -88,10 +88,10 @@ class BetweenTimestepsIndexing:
if (f_dir, inverse) in self._trivial_offset_translations:
if (f_dir, inverse) in self._trivial_offset_translations:
offsets = (0, ) * self._dim
offsets = (0, ) * self._dim
elif f_dir == 'in':
else:
offset_array_symbols = self._offset_array_symbols(f_dir, True)
offset_array_symbols = self._offset_array_symbols(f_dir, inverse)
offsets = tuple(sp.IndexedBase(s, shape=(1,))[self.dir_symbol] for s in offset_array_symbols)
offsets = tuple(sp.IndexedBase(s, shape=(1,))[index] for s in offset_array_symbols)
self._required_offset_arrays.add((f_dir, True))
self._required_offset_arrays.add((f_dir, inverse))
return {'index': translated_index, 'offsets': offsets}
return {'index': translated_index, 'offsets': offsets}