From 1eebc53546fbfcfac9b858c6820a789eac7c123e Mon Sep 17 00:00:00 2001 From: Robert Speck Date: Mon, 31 Jul 2023 13:13:13 +0200 Subject: [PATCH] =?UTF-8?q?Bl=C3=A4ck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pySDC/implementations/problem_classes/generic_ND_FD.py | 2 +- pySDC/tests/test_projects/test_DAE/test_problems.py | 2 +- .../tests/test_projects/test_resilience/test_fault_injection.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pySDC/implementations/problem_classes/generic_ND_FD.py b/pySDC/implementations/problem_classes/generic_ND_FD.py index 84423615b6..bea29631be 100644 --- a/pySDC/implementations/problem_classes/generic_ND_FD.py +++ b/pySDC/implementations/problem_classes/generic_ND_FD.py @@ -185,7 +185,7 @@ def solve_system(self, rhs, factor, u0, t): maxiter=liniter, atol=0, callback=self.work_counters[solver_type], - callback_type = 'legacy', + callback_type='legacy', )[0].reshape(nvars) elif solver_type == 'CG': sol[:] = cg( diff --git a/pySDC/tests/test_projects/test_DAE/test_problems.py b/pySDC/tests/test_projects/test_DAE/test_problems.py index 0a2a43b80d..0b5e59ccd3 100644 --- a/pySDC/tests/test_projects/test_DAE/test_problems.py +++ b/pySDC/tests/test_projects/test_DAE/test_problems.py @@ -21,7 +21,6 @@ def test_pendulum_u_exact_main(): u_test = prob.u_exact(5.0) - @pytest.mark.base def test_one_transistor_amplifier_u_exact_main(): from pySDC.projects.DAE.problems.transistor_amplifier import one_transistor_amplifier @@ -57,6 +56,7 @@ def test_two_transistor_amplifier_u_exact_main(): u_test = prob.u_exact(5.0) + # # Explicit test for the pendulum example # diff --git a/pySDC/tests/test_projects/test_resilience/test_fault_injection.py b/pySDC/tests/test_projects/test_resilience/test_fault_injection.py index 74e03addc3..c69cce7e38 100644 --- a/pySDC/tests/test_projects/test_resilience/test_fault_injection.py +++ b/pySDC/tests/test_projects/test_resilience/test_fault_injection.py @@ -13,7 +13,7 @@ def get_random_float(): float: Random float """ rand = 0.0 - while np.isclose(rand, 0.0, atol=1E-12): + while np.isclose(rand, 0.0, atol=1e-12): rand = np.random.uniform(low=-1.797693134862315e307, high=1.797693134862315e307, size=1)[0] return rand