Skip to content

Commit 6ebfa00

Browse files
committed
fix find_psi_2nd_separatrix for double nulls
mention @ggdose
1 parent 6ec7819 commit 6ebfa00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/physics/fluxsurfaces.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ function flux_surfaces(eqt::equilibrium__time_slice{T}, B0::T, R0::T; upsample_f
732732

733733
# secondary separatrix
734734
psi2nd = find_psi_2nd_separatrix(eqt, PSI_interpolant)
735-
(tmp,), _ = flux_surface(r, z, PSI, eqt.profiles_1d.psi, eqt.global_quantities.magnetic_axis.r, eqt.global_quantities.magnetic_axis.z, psi2nd, :encircling)
735+
tmp, _ = flux_surface(r, z, PSI, eqt.profiles_1d.psi, eqt.global_quantities.magnetic_axis.r, eqt.global_quantities.magnetic_axis.z, psi2nd, :encircling)
736736
if !isempty(tmp)
737-
(pr2nd, pz2nd) = tmp
737+
(pr2nd, pz2nd) = tmp[1]
738738
eqt.boundary_secondary_separatrix.outline.r = pr2nd
739739
eqt.boundary_secondary_separatrix.outline.z = pz2nd
740740
end

0 commit comments

Comments
 (0)