Skip to content

Commit

Permalink
Update imex_1st_order_mass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pancetta committed Dec 26, 2023
1 parent ca7ce0c commit d337dc9
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def compute_residual(self, stage=None):
res_norm = []
res = self.integrate()
for m in range(self.coll.num_nodes):

# This is somewhat ugly, but we have to apply the mass matrix on u0 only on the finest level
if L.level_index == 0:
res[m] += P.apply_mass_matrix(L.u[0] - L.u[m + 1])
Expand Down

0 comments on commit d337dc9

Please sign in to comment.