Skip to content
Snippets Groups Projects
Commit 5ab99291 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon:
Browse files

fix array symbols in proxies substitution for pull pattern (probably breaks other patterns)

parent 41fbad6f
Branches
Tags v5.0dev
1 merge request!115Fix FreeSlip boundary condition
...@@ -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
else: elif f_dir == 'in':
offset_array_symbols = self._offset_array_symbols(f_dir, inverse) offset_array_symbols = self._offset_array_symbols(f_dir, True)
offsets = tuple(sp.IndexedBase(s, shape=(1,))[index] for s in offset_array_symbols) offsets = tuple(sp.IndexedBase(s, shape=(1,))[self.dir_symbol] for s in offset_array_symbols)
self._required_offset_arrays.add((f_dir, inverse)) self._required_offset_arrays.add((f_dir, True))
return {'index': translated_index, 'offsets': offsets} return {'index': translated_index, 'offsets': offsets}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment