Skip to content

Update BIEST and SCTL to their latest master - #26

Merged
dmalhotra merged 2 commits into
hiddenSymmetries:masterfrom
dmalhotra:update-biest-sctl
Nov 11, 2026
Merged

dmalhotra merged 2 commits into
hiddenSymmetries:masterfrom
dmalhotra:update-biest-sctl

Conversation

@dmalhotra

Copy link
Copy Markdown
Collaborator

Bumps BIEST to its latest master (8978b33) and SCTL to 08448fa. The computed fields change: the tests now require the requested accuracy, 10^-digits, wherever the code reaches it.

  • BIEST's FieldPeriodBIOp no longer has the COORD_DIM, KDIM0 and KDIM1 template parameters, and its SetupSingular takes one surface, with the target grid before the source grid. ComputeB and ComputeGradB also pass it B, so that the quadrature grid resolves B too.
  • BIEST's SurfaceOp::CompleteVecField takes the parity of the data under stellarator symmetry and the toroidal orientation of the surface, in place of is_surf. VirtualCasing keeps the orientation of the surface from Setup.
  • SCTL 08448fa writes the constants of BoundaryIntegralOp in Real, so the float version of the library now compiles.
  • test.py: the limits of test_w7x and of the rotating-ellipse tests were set just above the errors of BIEST v1.0.0; they are now 10^-digits, the requested accuracy. The limit of test_w7x at 12 digits and the limits of the gradient are unchanged. With this BIEST the rotating ellipse at 6 digits reaches 7.3 digits, short of its old limit 2e-8 (7.7 digits); BIEST v1.0.0 reached 8.97 digits for W7-X at 9 digits.
  • test/virtual-casing.cpp: no unused lambda captures, which Clang and icpx warned about.

The public C++ and Python interfaces are unchanged; only private members of VirtualCasing change.

The C++, C and Python tests pass, here in CI and on an AMD EPYC 9474F node with GCC 13.3. The code compiles without warnings with -std=c++17 -Wall with GCC 11.5, 13.3 and 14.2, Clang 18 and 19, and icpx 2025.

🤖 Generated with Claude Code

dmalhotra and others added 2 commits November 10, 2026 18:19
BIEST:
- FieldPeriodBIOp no longer has the COORD_DIM, KDIM0 and KDIM1 template
  parameters, and its SetupSingular takes one surface, with the target
  grid before the source grid. ComputeB and ComputeGradB also pass it B,
  so that the quadrature grid resolves B too.
- SurfaceOp::CompleteVecField no longer takes is_surf: it takes the
  parity of the data under stellarator symmetry (biest::Parity::Even for
  the surface coordinates, Odd for the field B0) and tor_orient, +1 or -1
  as the toroidal index of the surface increases counterclockwise or
  clockwise. VirtualCasing keeps tor_orient_ of the surface from Setup.
- The WriteVTK of a field period takes the parity of its field: Odd for
  B, and Even for the gradient of B, which writes it as before (no single
  parity fits a gradient; the call is in disabled visualization code).

SCTL 08448fa writes the constants of BoundaryIntegralOp in Real; the
float version of the library now compiles it, through BIEST.

The limits of test_w7x and of the rotating-ellipse tests were set just
above the errors of BIEST v1.0.0. They are now 10^-digits, the
requested accuracy, wherever the code reaches it; the limit of
test_w7x at 12 digits and the limits of the gradient are unchanged.
The two go together: with this BIEST, the rotating ellipse at 6 digits
reaches 7.3 digits, short of its old limit 2e-8 (7.7 digits), and
BIEST v1.0.0 reached 8.97 digits for W7-X at 9 digits.

test/virtual-casing, test/axisymm, test/virtual-casing-c and the Python
package build without warnings with GCC 13.3, and the 4 tests of
test.py pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
print_relative_err captured NFP, half_period, Nt, Np, trg_Nt, trg_Np and
X, used only by a commented-out WriteVTK line, and idx the constant N.
Clang 19 and icpx 2025 warned about them with -Wall. The output of the
test is unchanged (GCC 13.3), and with BIEST 8978b33 the code compiles
without warnings with GCC 11.5, 13.3, 14.2, Clang 18, 19 and icpx 2025.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dmalhotra
dmalhotra merged commit 3d4fcbe into hiddenSymmetries:master Nov 11, 2026
16 of 17 checks passed
@dmalhotra
dmalhotra deleted the update-biest-sctl branch November 11, 2026 03:37
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