Commit 10ebcf8 1 parent 22b920e commit 10ebcf8 Copy full SHA for 10ebcf8
File tree 1 file changed +18
-2
lines changed
1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -362,10 +362,26 @@ def addPointAtWallToContours(self):
362
362
max_extend = 100
363
363
364
364
# 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
+ )
366
374
367
375
# 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
+ )
369
385
370
386
# Note: parallel_map will pass additional keywords to the function,
371
387
# including `equilibrium` and `psi`.
You can’t perform that action at this time.
0 commit comments