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 119f78b commit 9f3e3f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions festim/temperature/temperature_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ def create_functions(self, materials, mesh, dt=None):
if self.initial_condition.value.endswith(".xdmf"):
with f.XDMFFile(self.initial_condition.value) as file:
file.read_checkpoint(
self.T,
self.T_n,
self.initial_condition.label,
self.initial_condition.time_step,
)
self.T_n.assign(self.T)
else:
ccode_T_ini = sp.printing.ccode(self.initial_condition.value)
self.initial_condition.value = f.Expression(ccode_T_ini, degree=2, t=0)
Expand Down

0 comments on commit 9f3e3f0

Please sign in to comment.