Skip to content

Preserve radial knots in ASCII pmodb output - #370

Draft
krystophny wants to merge 1 commit into
PrincetonUniversity:developfrom
itpplasma:fix/pmodb-radial-knot-precision
Draft

krystophny wants to merge 1 commit into
PrincetonUniversity:developfrom
itpplasma:fix/pmodb-radial-knot-precision

Conversation

@krystophny

@krystophny krystophny commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Preserve the normalized poloidal flux in the ASCII field-strength table gpec_pmodb_n*.out. Distinct radii can round to one knot at the current output precision, which breaks the radial spline in the Perturbed Equilibrium Nonambipolar Transport Code (PENTRC).

Use ES24.16E3 in the flux column. The regression check uses the shipped Solov'ev reconstruction example and compares each written radius and poloidal mode against gpec_xclebsch_n1.out. With GNU Fortran, the maximum radius difference falls from 4.996e-10 to 5.551e-17. The tolerance is 6e-16.

Fixes #369.

Chris&AI

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.

Preserve distinct radial knots in ASCII pmodb output

1 participant