From 7bae1f931306129ebaeca3f493a3139bca532327 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen <pauli.t.virtanen@jyu.fi> Date: Mon, 29 Apr 2024 16:59:44 +0300 Subject: [PATCH] solver: Fix cpr() --- usadelndsoc/solver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usadelndsoc/solver.py b/usadelndsoc/solver.py index 3bafa3a..cb32231 100644 --- a/usadelndsoc/solver.py +++ b/usadelndsoc/solver.py @@ -1692,7 +1692,7 @@ def cpr( state.Deltas = [solver.Delta.copy()] state.phis = [0] state.dss = [0] - state.Js = [solver.J_tot.A.copy()] + state.Js = [solver.J_tot.copy()] phi = state.phis[-1] + ds / 4 @@ -1705,7 +1705,7 @@ def cpr( ) state.Deltas.append(solver.Delta.copy()) state.phis.append(float(phi)) - state.Js.append(solver.J_tot.A.copy()) + state.Js.append(solver.J_tot.copy()) for j in range(len(state.phis), max_points): if auto_stop and len(state.phis) > 2: -- GitLab