Skip to content

Commit

Permalink
Merge pull request #57 from bendudson/discard_fix
Browse files Browse the repository at this point in the history
Temporary fix to always discarding secondary x-point
  • Loading branch information
bendudson committed Mar 4, 2021
2 parents 9dfc4b7 + cd9c8ff commit 0997cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freegs/critical.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from warnings import warn


def find_critical(R, Z, psi, discard_xpoints=False):
def find_critical(R, Z, psi, discard_xpoints=True):
"""
Find critical points
Expand Down Expand Up @@ -193,7 +193,7 @@ def remove_dup(points):
# Draw a line from the O-point to each X-point. Psi should be
# monotonic; discard those which are not

if True: # discard_xpoints:
if discard_xpoints:
Ro, Zo, Po = opoint[0] # The primary O-point
xpt_keep = []
for xpt in xpoint:
Expand Down

0 comments on commit 0997cea

Please sign in to comment.