Skip to content

Continue pygvec runs that start from a VMEC wout - #28

Merged
krystophny merged 1 commit into
developfrom
fix/reset-without-iota
Nov 7, 2026
Merged

krystophny merged 1 commit into
developfrom
fix/reset-without-iota

Conversation

@krystophny

Copy link
Copy Markdown
Member

pygvec run moves whichInitEquilibrium = 1 into its initial stage, but the stages after it restart without the wout. They lacked the wout's nfp, boundary, toroidal flux and profiles, so they failed with KeyError: 'iota' or missing necessary parameter 'nfp', or ran with PHIEDGE = 1. This affected the test-CI cases that read a wout (vmec_readin_signgs-*, w7x_from_vmec_*).

The runner now takes those parameters from convert_vmec_wout, as pygvec convert-wout does. The discretisation (sgrid, X1X2_deg, LA_deg) stays as the parameter file sets it.

  • On test-CI/examples/vmec_readin_signgs-neg_asymF, pygvec run now ends at |force| = 1.28e-4 after its 50 iterations, the same as the Fortran gvec binary (1.2827e-4).
  • New test test_run_continues_from_wout (symmetric and asymmetric wout) fails on develop with KeyError: 'iota' and passes with the change; test_convert_wout.py passes 6/6.

Chris&AI

The runner moves whichInitEquilibrium = 1 into its initial stage, but the later stages restart without the wout and lacked its nfp, boundary, flux and profiles: they failed on 'iota' or 'nfp', or ran with PHIEDGE = 1. Take those parameters from convert_vmec_wout, as pygvec convert-wout does.
@krystophny
krystophny enabled auto-merge November 7, 2026 05:48
@krystophny
krystophny added this pull request to the merge queue Nov 7, 2026
Merged via the queue into develop with commit 8842ecd Nov 7, 2026
7 checks passed
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