Skip to content

Commit

Permalink
removed create_form method
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Oct 25, 2023
1 parent b848278 commit e501e38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions festim/boundary_conditions/dirichlet_bc.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,6 @@ def create_value(
)
self.value_fenics.interpolate(self.bc_expr)

def create_formulation(self, dofs, function_space):
"""Applies the boundary condition
Args:
dofs (numpy.ndarray): the degrees of freedom of surface facets
function_space (dolfinx.fem.FunctionSpace): the function space
"""
form = fem.dirichletbc(
value=self.value_fenics,
dofs=dofs,
V=function_space,
)
return form

def update(self, t):
"""Updates the boundary condition value
Expand Down
1 change: 0 additions & 1 deletion festim/hydrogen_transport_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ def create_dirichletbc_form(self, bc):
)

if (len(self.species) == 1) and (isinstance(bc.value_fenics, (fem.Function))):
# todo remove DirichletBC.create_form
return fem.dirichletbc(
value=bc.value_fenics,
dofs=bc_dofs,
Expand Down

0 comments on commit e501e38

Please sign in to comment.