Skip to content

Commit

Permalink
Merge branch 'master' into dp/boozmn_style_output
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanici authored Sep 1, 2024
2 parents 8a3e784 + b683e85 commit 033e6ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion desc/vmec.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from desc.objectives.utils import factorize_linear_constraints
from desc.profiles import PowerSeriesProfile, SplineProfile
from desc.transform import Transform
from desc.utils import Timer
from desc.utils import Timer, warnif
from desc.vmec_utils import (
fourier_to_zernike,
ptolemy_identity_fwd,
Expand Down Expand Up @@ -249,6 +249,11 @@ def save( # noqa: C901 - FIXME - simplify
M = eq.M
N = eq.N
M_nyq = M + 4 if M_nyq is None else M_nyq
warnif(
N_nyq is not None and int(N) == 0,
UserWarning,
"Passed in N_nyq but equilibrium is axisymmetric, setting N_nyq to zero",
)
N_nyq = N + 2 if N_nyq is None else N_nyq
N_nyq = 0 if int(N) == 0 else N_nyq

Expand Down

0 comments on commit 033e6ec

Please sign in to comment.