From 617e02e966bb1a6b4edec24ec441155d3fd7dc80 Mon Sep 17 00:00:00 2001 From: Jean-Matthieu Etancelin <jean-matthieu.etancelin@imag.fr> Date: Mon, 3 Feb 2014 15:47:24 +0000 Subject: [PATCH] Fix Scales launching from python for multiscale advection --- HySoP/hysop/operator/advection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HySoP/hysop/operator/advection.py b/HySoP/hysop/operator/advection.py index 024063ca6..af1d91033 100644 --- a/HySoP/hysop/operator/advection.py +++ b/HySoP/hysop/operator/advection.py @@ -234,7 +234,8 @@ class Advection(Operator): self.discreteFields[v] = v.discretize(topo) if 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], self.method[MultiScale]) self._my_setUp = self.setUp_Scales -- GitLab