From 69e4121804d5c0c9eed1c9f0a06f1bce3ab3d617 Mon Sep 17 00:00:00 2001 From: Davor Dundovic <33790330+ddundo@users.noreply.github.com> Date: Thu, 9 Jan 2025 19:05:14 +0100 Subject: [PATCH] Switch to comp coords before moving with QN (#147) Closes #146. I think only this was needed. Using `method="relaxation"` works as expected --- movement/monge_ampere.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/movement/monge_ampere.py b/movement/monge_ampere.py index f38b1a3..50915bf 100644 --- a/movement/monge_ampere.py +++ b/movement/monge_ampere.py @@ -725,6 +725,9 @@ def move(self): :return: the iteration count :rtype: :class:`int` """ + # Switch to computational coordinates + self.to_computational_coordinates() + # Solve equidistribution problem, handling convergence errors according to # desired behaviour try: