Skip to content

Commit

Permalink
Check if BC is a BC....
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Oct 15, 2024
1 parent f8f8513 commit ad3b10b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions festim/hydrogen_transport_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,9 @@ def update_time_dependent_values(self):
self.temperature_fenics.interpolate(self.temperature_expr)

for bc in self.boundary_conditions:
if bc.temperature_dependent:
bc.update(t=t)
if isinstance(bc, (F.FixedConcentrationBC, F.ParticleFluxBC)):
if bc.temperature_dependent:
bc.update(t=t)

for source in self.sources:
if source.temperature_dependent:
Expand Down

0 comments on commit ad3b10b

Please sign in to comment.