Skip to content

Commit

Permalink
#58: divergence not convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 28, 2024
1 parent 122e975 commit 2c0d3dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions basico/task_lyapunov.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run_lyapunov(**kwargs):
- | `num_exponents`: number of exponents to calculate (default: 3)
- | `calculate_convergence`: boolean flag indicating whether the divergence should be calculated (default: True)
- | `calculate_divergence`: boolean flag indicating whether the divergence should be calculated (default: True)
- | `start_averaging_after`: time after which the averaging should start (default: disabled = 0)
Expand Down Expand Up @@ -62,8 +62,8 @@ def run_lyapunov(**kwargs):
if 'num_exponents' in kwargs:
problem.setExponentNumber(int(kwargs['num_exponents']))

if 'calculate_convergence' in kwargs:
problem.setDivergenceRequested(bool(kwargs['calculate_convergence']))
if 'calculate_divergence' in kwargs:
problem.setDivergenceRequested(bool(kwargs['calculate_divergence']))

if 'start_averaging_after' in kwargs:
problem.setTransientTime(float(kwargs['start_averaging_after']))
Expand Down

0 comments on commit 2c0d3dc

Please sign in to comment.