From 8565820f14201c6a4811954acf160b49b70d0d32 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen <pauli.t.virtanen@jyu.fi> Date: Tue, 30 Aug 2022 13:19:19 +0300 Subject: [PATCH] tests: tweak to be faster --- tests/test_solver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_solver.py b/tests/test_solver.py index 1861ee1..11db396 100644 --- a/tests/test_solver.py +++ b/tests/test_solver.py @@ -203,7 +203,7 @@ def test_selfcons_kupriyanov(request, T): Delta0 = BCS_Delta(T, Tc0) Delta00 = BCS_Delta(0.05, Tc0) - sol = example_sns_1d(0, L, nx=100, ny=1, Delta0=Delta0) + sol = example_sns_1d(0, L, nx=40, ny=1, Delta0=Delta0) sol.Ly = 1 phase_mask = (sol.mask == MASK_TERMINAL) & (sol.x[:, None] > 0) @@ -215,8 +215,8 @@ def test_selfcons_kupriyanov(request, T): T_c0=Tc0, phase_mask=phase_mask, filename=cache_fn, - tol=1e-6, workers=-1, + ds=0.4, ) phis, Deltas, Js = res @@ -236,7 +236,7 @@ def test_selfcons_kupriyanov(request, T): Imax = abs(Is_u).max() - assert curve_separation(phis, Is, phis_u, Is_u) < 0.025 * Imax + assert curve_separation(phis, Is, phis_u, Is_u) < 0.04 * Imax assert curve_separation(phis, Is, phis_k, Is_k) < 0.075 * Imax -- GitLab