Skip to content

Fix for closed_wall_R/Z warning on load - #350

Merged
mikekryjak merged 5 commits into
masterfrom
closed_wall_fix
Jul 13, 2026
Merged

Fix for closed_wall_R/Z warning on load#350
mikekryjak merged 5 commits into
masterfrom
closed_wall_fix

Conversation

@mikekryjak

Copy link
Copy Markdown
Collaborator

closed_wall_R and closed_wall_Z used to be defined over a t dimension, which caused a warning on unrecognised variable on grid load. This was resolved in Hypnotoad by changing the coordinate to closed_wall: boutproject/hypnotoad#191

This PR reproduces this fix on the xBOUT side for legacy grids which still have the t coordinate, and adds closed_wall to the list of acceptable dimensions.

This PR supersedes #338.

Patch for older Hypnotoad grids
Hypnotoad was writing closed_wall_R/Z with a "t" dim before, which would cause an xBOUT warning. This was resolved boutproject/hypnotoad#191. This PR does the same fix xBOUT side for older grids.
@mikekryjak mikekryjak added the bugfix Fix for a bug label Jun 15, 2026
@mikekryjak
mikekryjak requested a review from dschwoerer June 15, 2026 13:46
@mikekryjak
mikekryjak force-pushed the closed_wall_fix branch 2 times, most recently from 27561b0 to 90a83c3 Compare June 15, 2026 13:56
mikekryjak and others added 2 commits June 15, 2026 14:57
For closed_wall_RZ
The variables closed_wall_R/Z have a dimension closed_wall, which would be detected as a scalar here since it's not in the hardcoded dims.
Comment thread xbout/load.py Outdated
Comment thread xbout/load.py Outdated
Comment thread xbout/load.py Outdated
Co-authored-by: David Bold <dave@ipp.mpg.de>
Comment thread xbout/load.py Outdated
Co-authored-by: David Bold <dave@ipp.mpg.de>
@mikekryjak
mikekryjak merged commit 028bea9 into master Jul 13, 2026
11 checks passed
@mikekryjak
mikekryjak deleted the closed_wall_fix branch July 13, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants