Skip to content

Preserve distinct radial knots in ASCII pmodb output #369

In progress

Description

@krystophny

The ASCII field-strength table gpec_pmodb_n*.out can round distinct normalized poloidal flux values to the same number. PENTRC builds a radial spline for each poloidal mode on those knots. Duplicate knots can lead to non-finite torque.

gpout_pmodb writes the flux with ES17.8E3. For illustration, 0.5000000001 and 0.5000000002 would both be written as 5.00000000E-001. The precision of the displacement table gpec_xclebsch_n*.out preserves the distinction.

On develop at 86a1d8f, enable pmodb_flag and xclebsch_flag in docs/examples/regression_solovev_recon_example/gpec.in and run dcon and gpec. The maximum difference between corresponding flux entries in the two tables is 4.996e-10. The example's knots remain distinct.

Write the normalized flux in gpec_pmodb_n*.out with enough digits to retain a double-precision value.

Chris&AI

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions