From f1c7887ce7a9e8621f24d44fb1932640f3a5ac8f Mon Sep 17 00:00:00 2001 From: Julian Owezarek Date: Fri, 22 Sep 2023 14:23:25 +0200 Subject: [PATCH] remove one temporary --- psydac/linalg/solvers.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/psydac/linalg/solvers.py b/psydac/linalg/solvers.py index 9246b6887..d9e0d5b7e 100644 --- a/psydac/linalg/solvers.py +++ b/psydac/linalg/solvers.py @@ -254,7 +254,7 @@ def solve(self, b, out=None): self._info = {'niter': m, 'success': am < tol_sqr, 'res_norm': sqrt(am) } if recycle: - self.set_options(x0=x.copy()) # try x.copy(out=self._options["x0"]) instead + x.copy(out=self._options["x0"]) return x @@ -473,7 +473,7 @@ def solve(self, b, out=None): self._info = {'niter': k, 'success': nrmr_sqr < tol_sqr, 'res_norm': sqrt(nrmr_sqr) } if recycle: - self.set_options(x0=x.copy()) + x.copy(out=self._options["x0"]) return x @@ -701,7 +701,7 @@ def solve(self, b, out=None): self._info = {'niter': m, 'success': res_sqr < tol_sqr, 'res_norm': sqrt(res_sqr)} if recycle: - self.set_options(x0=x.copy()) # try x.copy(out=self._options["x0"]) instead + x.copy(out=self._options["x0"]) return x @@ -937,7 +937,7 @@ def solve(self, b, out=None): self._info = {'niter': m, 'success': res_sqr < tol_sqr, 'res_norm': sqrt(res_sqr)} if recycle: - self.set_options(x0=x.copy()) # try x.copy(out=self._options["x0"]) instead + x.copy(out=self._options["x0"]) return x @@ -1256,7 +1256,7 @@ def solve(self, b, out=None): self._info = {'niter': itn, 'success': rnorm