Skip to content

Commit

Permalink
Bläck
Browse files Browse the repository at this point in the history
  • Loading branch information
pancetta committed Jul 31, 2023
1 parent 15c0723 commit 1eebc53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pySDC/implementations/problem_classes/generic_ND_FD.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion pySDC/tests/test_projects/test_DAE/test_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1eebc53

Please sign in to comment.