Skip to content
Closed
Changes from 2 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
10 changes: 7 additions & 3 deletions zoidberg/zoidberg.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ def make_maps(grid, magnetic_field, nslice=1, quiet=False, field_tracer=None, **
xind, zind = pol_slice.findIndex(xcoord, zcoord)

# Check boundary defined by the field
outside = magnetic_field.boundary.outside(xcoord, y_slice, zcoord)
xind[outside] = -1
zind[outside] = -1

if getattr(magnetic_field, "boundary", None) is not None:
Comment thread
totork marked this conversation as resolved.
Outdated
outside = magnetic_field.boundary.outside(
xcoord, y_slice, zcoord
)
xind[outside] = -1
zind[outside] = -1

parallel_slice.xt_prime[:, j, :] = xind
parallel_slice.zt_prime[:, j, :] = zind
Expand Down