Skip to content

Commit

Permalink
correct condition for test
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Oct 25, 2023
1 parent 69edb78 commit 9316037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion festim/hydrogen_transport_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def create_dirichletbc_form(self, bc):
)

# get dofs
if len(self.species) > 1 and callable(bc.value):
if len(self.species) > 1 and isinstance(bc.value_fenics, (fem.Function)):
function_space_dofs = (
bc.species.sub_function_space,
bc.species.collapsed_function_space,
Expand Down

0 comments on commit 9316037

Please sign in to comment.