Skip to content
Snippets Groups Projects
Commit 617e02e9 authored by Jean-Matthieu Etancelin's avatar Jean-Matthieu Etancelin
Browse files

Fix Scales launching from python for multiscale advection

parent 8c6b4b6b
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,8 @@ class Advection(Operator): ...@@ -234,7 +234,8 @@ class Advection(Operator):
self.discreteFields[v] = v.discretize(topo) self.discreteFields[v] = v.discretize(topo)
if self._isMultiScale: if self._isMultiScale:
self.config['isMultiscale'] = self._isMultiScale self.config['isMultiscale'] = self._isMultiScale
v_shape = self.discreteFields[self.velocity].data[0].shape v_shape = np.asarray(self.resolutions[self.velocity],
dtype=PARMES_INDEX) - 1
scales.init_multiscale(v_shape[0], v_shape[1], v_shape[2], scales.init_multiscale(v_shape[0], v_shape[1], v_shape[2],
self.method[MultiScale]) self.method[MultiScale])
self._my_setUp = self.setUp_Scales self._my_setUp = self.setUp_Scales
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment