Skip to content

Commit

Permalink
Merge pull request #506 from firedrakeproject/TBendall/ExplicitGuessFix
Browse files Browse the repository at this point in the history
Remove guess of first value in explicit multistage scheme
  • Loading branch information
jshipton authored Apr 30, 2024
2 parents c7afcae + 52cf1c0 commit dd678e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gusto/time_discretisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,6 @@ def solve_stage(self, x0, stage):
if self.increment_form:
self.x1.assign(x0)

# Use x0 as a first guess (otherwise may not converge)
self.x_out.assign(x0)

for i in range(stage):
self.x1.assign(self.x1 + self.dt*self.butcher_matrix[stage-1, i]*self.k[i])
for evaluate in self.evaluate_source:
Expand Down
Binary file modified integration-tests/data/linear_sw_wave_chkpt.h5
Binary file not shown.

0 comments on commit dd678e2

Please sign in to comment.