Skip to content

Commit

Permalink
made changes suggested by Alex
Browse files Browse the repository at this point in the history
  • Loading branch information
ta440 committed Mar 19, 2024
1 parent 0f89ae8 commit 52f444d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gusto/time_discretisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,9 +933,8 @@ def rhs(self):

for stage in range(self.nStages):
r = self.residual.label_map(
lambda t: t.has_label(time_derivative),
map_if_true=replace_subject(self.field_i[0], old_idx=self.idx),
map_if_false=replace_subject(self.field_i[0], old_idx=self.idx))
all_terms,
map_if_true=replace_subject(self.field_i[0], old_idx=self.idx))

r = r.label_map(
lambda t: t.has_label(time_derivative),
Expand Down Expand Up @@ -1000,7 +999,7 @@ def solve_stage(self, x0, stage):
if self.limiter is not None:
self.limiter.apply(self.field_i[stage])

# Obtain field_ip1 = field_n - dt* sum_m{c_im*F[field_m]}
# Obtain field_ip1 = field_n - dt* sum_m{a_im*F[field_m]}
self.solver[stage].solve()

if (stage == self.nStages - 1):
Expand Down

0 comments on commit 52f444d

Please sign in to comment.