Skip to content

Commit

Permalink
Have to_sfl use NFP in the grids used to fit new Equilibrium (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanici authored Sep 10, 2024
2 parents 6ab8327 + 34d3808 commit 12441ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desc/equilibrium/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ def to_sfl(
M_grid = M_grid or int(2 * M)
N_grid = N_grid or int(2 * N)

grid = ConcentricGrid(L_grid, M_grid, N_grid, node_pattern="ocs")
bdry_grid = LinearGrid(M=M, N=N, rho=1.0)
grid = ConcentricGrid(L_grid, M_grid, N_grid, node_pattern="ocs", NFP=eq.NFP)
bdry_grid = LinearGrid(M=M, N=N, rho=1.0, NFP=eq.NFP)

toroidal_coords = eq.compute(["R", "Z", "lambda"], grid=grid)
theta = grid.nodes[:, 1]
Expand Down

0 comments on commit 12441ac

Please sign in to comment.