Skip to content

Commit

Permalink
have to_sfl use NFP in the grids used to fit
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanici committed Sep 7, 2024
1 parent 6ab8327 commit 34d3808
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)

Check warning on line 602 in desc/equilibrium/coords.py

View check run for this annotation

Codecov / codecov/patch

desc/equilibrium/coords.py#L601-L602

Added lines #L601 - L602 were not covered by tests

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

0 comments on commit 34d3808

Please sign in to comment.