Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Sep 4, 2024
1 parent 7b65ece commit 7e2ef05
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ Pressure and current information taken from `shot` unless provided in keywords
Returns a new Shot, often called `refill` by convention
# Keyword arguments
- `tol` - Relative tolerance for convergence of the magnetic axis flux value to terminate iterations early
- `relax` - Relaxation parameter on the Picard iterations. `Ψₙ₊₁ = relax * Ψ̃ₙ₊₁ + (1 - relax) * Ψₙ`
- `debug=true` - Print debugging and convergence information
- `fit_fallback=true` - Use concentric surfaces if any flux surface errors on refitting. Improves robustness in early iterations
- `concentric_first=true` - Use concentric surfaces for first iteration, which can improve robustness if large changes from `shot` is expected
- `tol` - Relative tolerance for convergence of the magnetic axis flux value to terminate iterations early
- `relax` - Relaxation parameter on the Picard iterations. `Ψₙ₊₁ = relax * Ψ̃ₙ₊₁ + (1 - relax) * Ψₙ`
- `debug=true` - Print debugging and convergence information
- `fit_fallback=true` - Use concentric surfaces if any flux surface errors on refitting. Improves robustness in early iterations
- `concentric_first=true` - Use concentric surfaces for first iteration, which can improve robustness if large changes from `shot` is expected
"""
function solve(
shot::Shot,
Expand Down Expand Up @@ -72,7 +73,6 @@ function solve!(refill::Shot, its::Integer; tol::Real=0.0, relax::Real=1.0, debu
L = 2 * refill.N * (2 * refill.M + 1)
B = zeros(L)
C = zeros(L)
Ψold = 0.0
warn_concentric = false
_, _, Ψold = find_axis(refill)

Expand Down

0 comments on commit 7e2ef05

Please sign in to comment.