Skip to content

Preserve the LWOUTTXT namelist setting through initialization - #24

Open
krystophny wants to merge 1 commit into
hiddenSymmetries:masterfrom
itpplasma:fix/upstream-lwouttxt-20261023
Open

krystophny wants to merge 1 commit into
hiddenSymmetries:masterfrom
itpplasma:fix/upstream-lwouttxt-20261023

Conversation

@krystophny

Copy link
Copy Markdown

LWOUTTXT is reset to false after reading INDATA in read_indata and again during initialize_vmec_arrays. Consequently, an explicit true namelist setting never reaches the existing native text-output writer. Remove both overrides and retain the established default in vmec_input.

The existing published input.li383_low_res already requests LWOUTTXT=T. Assert its value in the Python input-readback test and add two native CTest cases using the same published fixture: true requires a normal VMEC text header and netCDF output, while false requires netCDF output without text. These checks exercise namelist reading, initialization and output together without private data or numerical reference changes.

Qualified this exact revision abae5a9 on current upstream 70c637a in Slurm 3362058. The original implementation fails the true-output test and passes the false control. With the repair, both native tests pass, and both pass again in one clean resident Fo generation using a pinned qualified driver and unchanged runtime identities. The owner stopped cleanly. The four-core bounded job completed in 50 seconds. The full Python wrapper suite was not rerun by this native check.

The equivalent fix is retained in our VMEC2000 fork. This draft stays with upstream review.

Chris&AI

Keep the documented default in vmec_input and honor both explicit values. Exercise the native executable with the published low-resolution fixture in both output modes and retain the Python readback assertion.
@mbkumar

mbkumar commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

@krystophny, is this PR ready for review, or is it still a draft?

@krystophny
krystophny marked this pull request as ready for review November 23, 2026 05:31
@krystophny

Copy link
Copy Markdown
Author

@krystophny, is this PR ready for review, or is it still a draft?

Ready! I keep AI heavy PRs as drafts usually in order not to bother anyone until I had time to check myself. This one looks fine to me.

This branch has not been deployed

No deployments
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.

2 participants