Skip to content

Commit

Permalink
TB: small fixes (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
brownbaerchen authored Sep 20, 2024
1 parent 8420a47 commit 2b8ebc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pySDC/core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, controller_params, description, useMPI=None):
user_hooks = controller_params.get('hook_class', [])
hook_classes += user_hooks if type(user_hooks) == list else [user_hooks]
[self.add_hook(hook) for hook in hook_classes]
controller_params['hook_class'] = controller_params.get('hook_class', hook_classes)
controller_params['hook_class'] = hook_classes

for hook in self.hooks:
hook.pre_setup(step=None, level_number=None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def post_spread_processing(self, controller, step, **kwargs):

for m in range(len(level.u)):
level.u[m][:] = self.status.u_inter[i][m].reshape(level.prob.init[0])[:]
level.f[m][:] = self.status.f_inter[i][m].reshape(level.prob.init[0])[:]
level.f[m][:] = self.status.f_inter[i][m].reshape(level.f[m].shape)[:]

# reset the status variables
self.status.perform_interpolation = False
Expand Down

0 comments on commit 2b8ebc7

Please sign in to comment.