Skip to content

Commit 10ebcf8

Browse files
committed
Fix wall points for nonorthogonal_target_poloidal_spacing_range=None
1 parent 22b920e commit 10ebcf8

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

hypnotoad/core/mesh.py

+18-2
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,26 @@ def addPointAtWallToContours(self):
362362
max_extend = 100
363363

364364
# should the contour intersect a wall at the lower end?
365-
lower_wall = self.connections["lower"] is None
365+
# if nonorthogonal_target_poloidal_spacing_range_* for this region is `None`,
366+
# then ignore the wall intersections.
367+
lower_wall = self.connections["lower"] is None and not (
368+
not self.user_options.orthogonal
369+
and self.equilibriumRegion.getTargetParameter(
370+
"nonorthogonal_target_poloidal_spacing_range"
371+
)
372+
is None
373+
)
366374

367375
# should the contour intersect a wall at the upper end?
368-
upper_wall = self.connections["upper"] is None
376+
# if nonorthogonal_target_poloidal_spacing_range_* for this region is `None`,
377+
# then ignore the wall intersections.
378+
upper_wall = self.connections["upper"] is None and not (
379+
not self.user_options.orthogonal
380+
and self.equilibriumRegion.getTargetParameter(
381+
"nonorthogonal_target_poloidal_spacing_range"
382+
)
383+
is None
384+
)
369385

370386
# Note: parallel_map will pass additional keywords to the function,
371387
# including `equilibrium` and `psi`.

0 commit comments

Comments
 (0)