Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Oct 18, 2023
1 parent 1d441a6 commit 33decd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions festim/hydrogen_transport_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,17 @@ def run(self, final_time: float):

# update boundary conditions
for bc in self.boundary_conditions:
bc.update(self.t.value)
bc.update(float(self.t))

self.solver.solve(self.u)

mobile_xdmf.write_function(self.u, self.t.value)
mobile_xdmf.write_function(self.u, float(self.t))

surface_flux = form(D * dot(grad(cm), n) * self.ds(2))

flux = assemble_scalar(surface_flux)
flux_values.append(flux)
times.append(self.t.value)
times.append(float(self.t))

# update previous solution
self.u_n.x.array[:] = self.u.x.array[:]
Expand Down

0 comments on commit 33decd8

Please sign in to comment.