Skip to content

Commit

Permalink
Fix missing profile attirbute when profile=False
Browse files Browse the repository at this point in the history
  • Loading branch information
kburns committed Jan 31, 2024
1 parent 9cb1d35 commit b0ee129
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dedalus/core/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ def __init__(self, problem, timestepper, enforce_real_cadence=100, warmup_iterat
self.warmup_profiler = cProfile.Profile()
self.run_profiler = cProfile.Profile()
self.setup_profiler.enable()
else:
self.profile = False
# Build subsystems and subproblems
super().__init__(problem, **kw)
# Build LHS matrices
Expand Down

0 comments on commit b0ee129

Please sign in to comment.