Skip to content

Commit

Permalink
Update festim/temperature/temperature_solver.py
Browse files Browse the repository at this point in the history
Co-authored-by: Rémi Delaporte-Mathurin <[email protected]>
  • Loading branch information
KulaginVladimir and RemDelaporteMathurin authored Dec 7, 2023
1 parent 59c2dc2 commit 38f7b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion festim/temperature/temperature_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def create_functions(self, materials, mesh, dt=None):
self.T_n = f.Function(V, name="T_n")
self.v_T = f.TestFunction(V)

if self.transient:
if self.transient and self.initial_condition:
if isinstance(self.initial_condition.value, str):
if self.initial_condition.value.endswith(".xdmf"):
with f.XDMFFile(self.initial_condition.value) as file:
Expand Down

0 comments on commit 38f7b18

Please sign in to comment.