Skip to content

Commit 0bcd616

Browse files
committed
ruff
1 parent dc51fb6 commit 0bcd616

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/festim/hydrogen_transport_problem.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,17 +1596,13 @@ def mixed_term(u, v, n):
15961596
interface.id
15971597
) - 0.5 * mixed_term(
15981598
v_b, (u_b / K_b - u_t / K_t), n_0
1599-
) * dInterface(
1600-
interface.id
1601-
)
1599+
) * dInterface(interface.id)
16021600

16031601
F_1 = +0.5 * mixed_term((u_b + u_t), v_t, n_0) * dInterface(
16041602
interface.id
16051603
) - 0.5 * mixed_term(
16061604
v_t, (u_b / K_b - u_t / K_t), n_0
1607-
) * dInterface(
1608-
interface.id
1609-
)
1605+
) * dInterface(interface.id)
16101606
F_0 += (
16111607
2
16121608
* gamma
@@ -1840,9 +1836,9 @@ def post_processing(self):
18401836
export.write(t=float(self.t))
18411837

18421838
elif isinstance(export, exports.Profile1DExport):
1843-
assert (
1844-
export.subdomain
1845-
), "Profile1DExport requires a subdomain to be set"
1839+
assert export.subdomain, (
1840+
"Profile1DExport requires a subdomain to be set"
1841+
)
18461842
u = export.subdomain.u
18471843
if export._dofs is None:
18481844
index = self.subdomain_to_species[export.subdomain].index(

0 commit comments

Comments
 (0)