From 2cfb1d6af9fbade77c48ef8ab632b2bce4237721 Mon Sep 17 00:00:00 2001 From: JM Etancelin <jean-matthieu.etancelin@univ-pau.fr> Date: Thu, 26 Mar 2020 16:10:49 +0100 Subject: [PATCH] Fix python custom operator --- hysop/backend/host/python/operator/custom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hysop/backend/host/python/operator/custom.py b/hysop/backend/host/python/operator/custom.py index 80c64db43..11fce77c6 100644 --- a/hysop/backend/host/python/operator/custom.py +++ b/hysop/backend/host/python/operator/custom.py @@ -66,9 +66,9 @@ class PythonCustomOperator(HostOperator): for _v in v if isinstance(v, VectorField) else (v, ): for vd in self.output_discrete_fields[_v]: doutvar.append(vd) - gh = self.output_discrete_fields[v].build_ghost_exchanger() - if gh is not None: - self.ghost_exchanger.append(gh) + gh = self.output_discrete_fields[_v].build_ghost_exchanger() + if gh is not None: + self.ghost_exchanger.append(gh) elif isinstance(v, Parameter): doutparam.append(v) self.dinvar, self.doutvar = tuple(dinvar), tuple(doutvar) -- GitLab