Skip to content

Commit

Permalink
add a flake8 on top
Browse files Browse the repository at this point in the history
  • Loading branch information
ta440 committed Nov 13, 2024
1 parent 13a1756 commit b069c6e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gusto/time_discretisation/time_discretisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ def setup(self, equation, apply_bcs=True, *active_labels):
# Set the field name and bcs if using simultaneous transport.
if isinstance(self.field_name, list):
self.field_name = equation.field_name
# Set up the bcs later, so leave as none
# for now. What if no wrapper though ... .
bcs = None# equation.bcs[self.field_name]
# Set up the bcs later, so leave as None
# for now. However, this means no bcs
# are passed into the wrapper setups ...
bcs = None

self.evaluate_source = []
self.physics_names = []
Expand Down Expand Up @@ -286,8 +287,8 @@ def setup(self, equation, apply_bcs=True, *active_labels):
self.bcs = []
for idx, field_name in enumerate(self.equation.field_names):
for bc in equation.bcs[field_name]:
self.bcs.append(DirichletBC(self.fs.sub(idx),
bc.function_arg,
self.bcs.append(DirichletBC(self.fs.sub(idx),
bc.function_arg,
bc.sub_domain))
else:
# Transfer boundary conditions onto test function space
Expand Down

0 comments on commit b069c6e

Please sign in to comment.