Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

fixed bug in which gridgen/restrict_psi_range changed x-point count to 1 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/tokamak_grids/gridgen/restrict_psi_range.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ FUNCTION restrict_psi_range, critical, psi_outer
inner_sep = 0
ENDIF ELSE BEGIN
; Need to update inner_sep
w2 = WHERE(w EQ critical.inner_sep, count)
IF count EQ 1 THEN BEGIN
w2 = WHERE(w EQ critical.inner_sep, count2)
IF count2 EQ 1 THEN BEGIN
inner_sep = w2[0]
ENDIF ELSE BEGIN
w = [critical.inner_sep]
Expand Down