From 93160375926a0d49482c49cc3c32d106c7c3a9ac Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Wed, 25 Oct 2023 12:01:40 -0400 Subject: [PATCH] correct condition for test --- festim/hydrogen_transport_problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/festim/hydrogen_transport_problem.py b/festim/hydrogen_transport_problem.py index 00fa90bf4..6bff602e9 100644 --- a/festim/hydrogen_transport_problem.py +++ b/festim/hydrogen_transport_problem.py @@ -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,