Skip to content

Give VMEC inputs without a pressure profile zero pressure - #32

Merged
krystophny merged 1 commit into
developfrom
fix/vmec-default-pressure
Nov 7, 2026
Merged

krystophny merged 1 commit into
developfrom
fix/vmec-default-pressure

Conversation

@krystophny

Copy link
Copy Markdown
Member

A VMEC input without AM has zero pressure, because VMEC's default AM is zero. parameters_from_vmec only logged a warning and wrote no pres, so the run stopped with missing necessary parameter 'pres_type' (for example VMEX's input.basic_non_stellsym_simsopt). It now writes a zero polynomial.

The new test test_parameters_from_vmec_defaults_to_zero_pressure fails on develop and passes with the change.

Chris&AI

VMEC's default AM is zero. parameters_from_vmec only warned and wrote no pres, so GVEC stopped with "missing necessary parameter 'pres_type'".
@krystophny
krystophny enabled auto-merge November 7, 2026 06:32
@krystophny
krystophny added this pull request to the merge queue Nov 7, 2026
Merged via the queue into develop with commit 7c63beb 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