Skip to content

Preserve the field-line integration failure diagnostic - #1

Closed
krystophny wants to merge 2 commits into
mainfrom
equilibrium/fieldline-error-message
Closed

krystophny wants to merge 2 commits into
mainfrom
equilibrium/fieldline-error-message

Conversation

@krystophny

@krystophny krystophny commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

The field-line integration failure path formats a 65-character message into a 64-character buffer. It raises a Fortran End of record error before program_stop can report the integration failure.

Increase the buffer to 128 characters and use unrestricted integer widths, so five-digit step limits are printed as numbers rather than asterisks. The regression compiles and executes the actual declaration, FORMAT and WRITE from direct_fl_int, with a deterministic 10000-step diagnostic: the parent fails with End of record; this change prints the complete step, angle and surface index.

Validation: python regression/test/test_direct_error_message.py passes with gfortran. This fixes the diagnostic, not the underlying numerical integration failure observed for a coarse exported equilibrium.

Chris&AI

@krystophny

krystophny commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner Author

Integrated into the canonical GPEC production fork through PR5, squash 30985f0. The maintained upstream defect report354 and this original source branch remain retained. Closing this duplicate delivery path.

Chris&AI

@krystophny krystophny closed this Oct 23, 2026
logan-nc pushed a commit to PrincetonUniversity/GPEC that referenced this pull request Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant