Skip to content

Commit

Permalink
Fix progress bar error for parallel executions (#3859)
Browse files Browse the repository at this point in the history
* Fix progress bar erros for parallel executions

* Test for a parallel execution
  • Loading branch information
Ig-dolci authored Nov 11, 2024
1 parent e607414 commit 29c486d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ To have the step 4, we need first to tape the forward problem. That is done by c

from firedrake.adjoint import *
continue_annotation()
get_working_tape().progress_bar = ProgressBar

**Steps 2-3**: Solve the wave equation and compute the functional::

Expand Down
2 changes: 1 addition & 1 deletion firedrake/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, *args, **kwargs):
def __enter__(self):
pass

def __exit__(self):
def __exit__(self, *args, **kwargs):
pass

def iter(self, iterator):
Expand Down

0 comments on commit 29c486d

Please sign in to comment.