Skip to content

Commit

Permalink
Update BaseTransfer_mass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pancetta committed Dec 19, 2023
1 parent ca48726 commit 62b408e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pySDC/implementations/transfer_classes/BaseTransfer_mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def restrict(self):
# restrict fine values in space
tmp_u = []
for m in range(1, SF.coll.num_nodes + 1):
tmp_u.append(self.space_transfer.restrict(F.u[m]))
tmp_u.append(self.space_transfer.project(F.u[m]))

# restrict collocation values
G.u[0] = self.space_transfer.restrict(F.u[0])
G.u[0] = self.space_transfer.project(F.u[0])
for n in range(1, SG.coll.num_nodes + 1):
G.u[n] = self.Rcoll[n - 1, 0] * tmp_u[0]
for m in range(1, SF.coll.num_nodes):
Expand Down

0 comments on commit 62b408e

Please sign in to comment.