Skip to content

Commit cfae4be

Browse files
author
Thomas Baumann
committed
Linting...
1 parent 88809f5 commit cfae4be

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pySDC/implementations/problem_classes/LeakySuperconductor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ def get_non_linear_Jacobian(u):
198198
for n in range(0, self.params.newton_iter):
199199
# assemble G such that G(u) = 0 at the solution of the step
200200
G = u - factor * self.eval_f(u, t) - rhs
201-
self.work_counters['rhs'].niter -= 1 # Work regarding construction of the Jacobian etc. should count into the Newton iterations only
201+
self.work_counters[
202+
'rhs'
203+
].niter -= (
204+
1 # Work regarding construction of the Jacobian etc. should count into the Newton iterations only
205+
)
202206

203207
res = np.linalg.norm(G, np.inf)
204208
if res <= self.params.newton_tol and n > 0: # we want to make at least one Newton iteration

pySDC/projects/Resilience/leaky_superconductor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ def compare_imex_full(plotting=False):
254254
max(res[True]) > prob.params.u_max
255255
), f"Expected runaway to happen, but maximum temperature is {max(res[True]):.2e} < u_max={prob.params.u_max:.2e}!"
256256

257-
assert rhs[True] == rhs[False], f"Expected IMEX and fully implicit schemes to take the same number of right hand side evaluations per step, but got {rhs[True]} and {rhs[False]}!"
257+
assert (
258+
rhs[True] == rhs[False]
259+
), f"Expected IMEX and fully implicit schemes to take the same number of right hand side evaluations per step, but got {rhs[True]} and {rhs[False]}!"
258260

259261

260262
if __name__ == '__main__':

0 commit comments

Comments
 (0)